### 题目 (13题目)
* Search Insert Position
* Search in Rotated Sorted Array II
* Search in Rotated Sorted Array
* Find Minimum in Rotated Sorted Array
* Guess Number Higher or Lower
* Intersection of Two Arrays
* Intersection of Two Arrays II
* H-Index
* H-Index II
* Shortest Word Distance I
* 244 Shortest Word Distance II (Median)
重复调用, 优化时间复杂度。
一般会用到hashmap, 牺牲空间复杂度
* Shortest Word Distance II
* 54 Spiral Matrix (Median)
二维数组螺旋输出, 暴力解法
Python 有一个一行解法,需要理解zip的使用。
```python
class Solution(object):
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
return matrix and list(matrix.pop(0)) + self.spiralOrder(zip(*matrix)[::-1])
```
* 58. Length of Last Word (Easy)
In python split(' ') and split() is different.
```python
>>> "a ".split()
['a']
>>> "a ".split(' ')
['a', '']
```
2019/02/02 (Linked List 8) 只刷了半天题。。。白天半天还在补作业。。。
1 Linked List Cycle II
2 Linked List Cycle
3 Reverse Linked List II
4 Reverse Linked List
5 Odd Even Linked List
6 Swap Nodes in Pairs
7 Add Binary
8 Plus One