@@ -8,75 +8,3 @@ I really **enjoy** it, I will always update it.
8
8
9
9
🙈🙈🙈Restart at 2019.01.14
10
10
11
- # directory
12
-
13
- - [ leetcode] ( #0 )
14
- - [ Array] ( #1 )
15
- - [ LinkedList] ( #2 )
16
- - [ String] ( #3 )
17
- - [ Tree] ( #4 )
18
- - [ math] ( #5 )
19
- - [ DP] ( #6 )
20
- - [ SQL] ( #7 )
21
-
22
- <h2 id = 0 >leetcode</h3 >
23
- <h3 id = 1 >Array</h4 >
24
-
25
-
26
-
27
- | Problem | Solution | Time | Difficulty | Note |
28
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | --------------- |
29
- | [ 26.Remove Duplicates from Sorted Array] ( https://leetcode.com/problems/remove-duplicates-from-sorted-array ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Array/No26.java ) | O(N) | Easy | |
30
- | [ 27.Remove Element] ( https://leetcode.com/problems/remove-element ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Array/No27.java ) | O(N) | Easy | |
31
- | [ 35.Search Insert Position] ( https://leetcode.com/problems/search-insert-position ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Array/No35.java ) | O(N) | Easy | |
32
- | [ 53.Maximum Subarray] ( https://leetcode.com/problems/maximum-subarray ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Array/No53.java ) | | Easy | |
33
- | [ 66.Plus One] ( https://leetcode.com/problems/plus-one ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Array/No66.java ) | O(N) | Easy | |
34
- | [ 1.Two Sum] ( https://leetcode.com/problems/two-sum ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/Array/No1.java ) | | | |
35
- | [ 14.Longest Common Prefix] ( https://leetcode.com/problems/longest-common-prefix ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Array/No14.java ) | O(N) | Easy | 😩第一个元素范围 |
36
-
37
- <h3 id = 2 >LinkedList</h4 >
38
-
39
- | Problem | Solution | Time | Difficulty | Note |
40
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | ---- |
41
- | [ 21.Merge Two Sorted Lists] ( https://leetcode.com/problems/merge-two-sorted-lists ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/LinkedList/No21.java ) | O(N) | Easy | |
42
-
43
- <h3 id = 3 >String</h4 >
44
-
45
- | Problem | Solution | Time | Difficulty | Note |
46
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------ | ---------- | ----------------------------------- |
47
- | [ 28.Implement strStr()] ( https://leetcode.com/problems/implement-strstr ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/String/No28.java ) | O(N)\|\| O(1) | Easy | |
48
- | [ 58.Length of Last Word] ( https://leetcode.com/problems/length-of-last-word ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/String/No58.java ) | | Easy | |
49
- | [ 20.Valid Parentheses] ( https://leetcode.com/problems/valid-parentheses ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/String/No20.java ) | O(N) | Easy | 🤣最终的返回为stack.isEmpty() |
50
- | [ 125.Valid Palindrome] ( https://leetcode.com/problems/valid-palindrome ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/String/No125.java ) | | Easy | API: isLetterOrDigit () toLowerCase() |
51
-
52
- <h3 id = 4 >Tree</h3 >
53
-
54
- | Problem | Solution | Time | Difficulty | Note |
55
- | -------------------------------------------------------- | ------------------------------------------------------------ | ---- | ---------- | ---- |
56
- | [ 100.Same Tree] ( https://leetcode.com/problems/same-tree ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/Tree/No100.java ) | O(N) | Easy | |
57
- | | | | | |
58
-
59
- <h3 id = 5 >Math</h3 >
60
-
61
- | Problem | Solution | Time | Difficulty | Note |
62
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | ------------------------------------------------------------ |
63
- | [ 7.Reverse Integer] ( https://leetcode.com/problems/reverse-integer ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/math/No07.java ) | | Easy | |
64
- | [ 9.Palindrome Number] ( https://leetcode.com/problems/palindrome-number ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/math/No09.java ) | O(N) | Easy | |
65
- | [ 136.Single Number] ( https://leetcode.com/problems/single-number ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/math/No136.java ) | O(N) | Easy | 🤣Bit Manipulation(位运算)才是解决王道 |
66
- | [ 171Excel Sheet Column Number] ( https://leetcode.com/problems/excel-sheet-column-number ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/math/No171.java ) | O(N) | Easy | 🙈打脸,Restart的第一道题,思维迟钝了,以后每天一道~坚持住! |
67
- | [ 168. Excel Sheet Column Title] ( https://leetcode.com/problems/excel-sheet-column-title/ ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/math/No168.java ) | | Easy | 对比参照No171,两者题目反过来,思维反过来处理即可。 |
68
-
69
- <h3 id =" 6 " >DP</h3 >
70
-
71
- | Problem | Solution | Time | Difficulty | Note |
72
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | ------------------------------------------------------------ |
73
- | [ 70.Climbing Stairs] ( https://leetcode.com/problems/climbing-stairs ) | [ java] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/DP/No70.java ) | O(N) | Easy | 😇[ DP初步讲解] ( https://leetcode.com/articles/climbing-stairs/ ) & [ 讲解] ( https://leetcode.com/problems/climbing-stairs/discuss/163347/Python-3000DP-or-tm ) |
74
-
75
- <h3 id =" 7 " >SQL</h3 >
76
-
77
- | Problem | Solution | Time | Difficulty | Note |
78
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | -------------------------------------------------- |
79
- | [ 175. Combine Two Tables] ( https://leetcode.com/problems/combine-two-tables/ ) | [ Sql] ( https://github.com/tujietg/Algorithm/blob/master/leetcode/SQL/No175.sql ) | | Easy | 😑😑😑很久没写sql了,忘了差不多了,是时候捡起来了~! |
80
-
81
-
82
-
0 commit comments