09 2018 档案
摘要:原题: Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list as 2->1->4->3. Note:
阅读全文
摘要:这三个题目基本属于同一类型,这里我的解题思路是所谓的‘夹逼定理’。不同的题目运用该思路会有一点区别,总体上是大同小异。 先来看15题: 题目要求取出数列中可以加起来为0的三个数来组成序列并添加到新的序列中去。这个题目其实非常简单,和之前水桶装水的题目有些类似。这里只需要先绑定两端,中间的值动。 16
阅读全文
摘要:题目: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit t
阅读全文

浙公网安备 33010602011771号