@@ -17,52 +17,53 @@ I really **enjoy** it, I will always update it.
17
17
- [ DP] ( #6 )
18
18
19
19
<h2 id = 0 >leetcode</h3 >
20
-
21
20
<h3 id = 1 >Array</h4 >
22
21
22
+
23
23
| Problem | Solution | Time | Difficulty | Note |
24
24
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | --------------- |
25
- | [ 26.Remove Duplicates from Sorted Array] ( https://leetcode.com/problems/remove-duplicates-from-sorted-array ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No26.java ) | O(N) | Easy | |
26
- | [ 27.Remove Element] ( https://leetcode.com/problems/remove-element ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No27.java ) | O(N) | Easy | |
27
- | [ 35.Search Insert Position] ( https://leetcode.com/problems/search-insert-position ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No35.java ) | O(N) | Easy | |
28
- | [ 53.Maximum Subarray] ( https://leetcode.com/problems/maximum-subarray ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No53.java ) | | Easy | |
29
- | [ 66.Plus One] ( https://leetcode.com/problems/plus-one ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No66.java ) | O(N) | Easy | |
30
- | [ 1.Two Sum] ( https://leetcode.com/problems/two-sum ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No1.java ) | | | |
31
- | [ 14.Longest Common Prefix] ( https://leetcode.com/problems/longest-common-prefix ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Array/No14.java ) | O(N) | Easy | 😩第一个元素范围 |
25
+ | [ 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 | |
26
+ | [ 27.Remove Element] ( https://leetcode.com/problems/remove-element ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/leetcode /Array/No27.java ) | O(N) | Easy | |
27
+ | [ 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 | |
28
+ | [ 53.Maximum Subarray] ( https://leetcode.com/problems/maximum-subarray ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/leetcode /Array/No53.java ) | | Easy | |
29
+ | [ 66.Plus One] ( https://leetcode.com/problems/plus-one ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/leetcode /Array/No66.java ) | O(N) | Easy | |
30
+ | [ 1.Two Sum] ( https://leetcode.com/problems/two-sum ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/Array/No1.java ) | | | |
31
+ | [ 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 | 😩第一个元素范围 |
32
32
33
33
<h3 id = 2 >LinkedList</h4 >
34
34
35
35
| Problem | Solution | Time | Difficulty | Note |
36
36
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | ---- |
37
- | [ 21.Merge Two Sorted Lists] ( https://leetcode.com/problems/merge-two-sorted-lists ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/LinkedList/No21.java ) | O(N) | Easy | |
37
+ | [ 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 | |
38
38
39
39
<h3 id = 3 >String</h4 >
40
40
41
- | Problem | Solution | Time | Difficulty | Note |
42
- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------ | ---------- | ---------------------------- |
43
- | [ 28.Implement strStr()] ( https://leetcode.com/problems/implement-strstr ) | [ java] ( https://github.com/tujietg/leetcode/blob/master/String/No28.java ) | O(N)\|\| O(1) | Easy | |
44
- | [ 58.Length of Last Word] ( https://leetcode.com/problems/length-of-last-word ) | [ java] ( https://github.com/tujietg/leetcode/blob/master/String/No58.java ) | | Easy | |
45
- | [ 20.Valid Parentheses] ( https://leetcode.com/problems/valid-parentheses ) | [ java] ( https://github.com/tujietg/leetcode/blob/master/String/No20.java ) | O(N) | Easy | 🤣最终的返回为stack.isEmpty() |
41
+ | Problem | Solution | Time | Difficulty | Note |
42
+ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------ | ---------- | ----------------------------------- |
43
+ | [ 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 | |
44
+ | [ 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 | |
45
+ | [ 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() |
46
+ | [ 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() |
46
47
47
48
<h3 id = 4 >Tree</h3 >
48
49
49
50
| Problem | Solution | Time | Difficulty | Note |
50
51
| -------------------------------------------------------- | ------------------------------------------------------------ | ---- | ---------- | ---- |
51
- | [ 100.Same Tree] ( https://leetcode.com/problems/same-tree ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/Tree/No100.java ) | O(N) | Easy | |
52
+ | [ 100.Same Tree] ( https://leetcode.com/problems/same-tree ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/leetcode /Tree/No100.java ) | O(N) | Easy | |
52
53
| | | | | |
53
54
54
55
<h3 id = 5 >Math</h3 >
55
56
56
57
| Problem | Solution | Time | Difficulty | Note |
57
58
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | ---- |
58
- | [ 7.Reverse Integer] ( https://leetcode.com/problems/reverse-integer ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/math/No07.java ) | | Easy | |
59
- | [ 9.Palindrome Number] ( https://leetcode.com/problems/palindrome-number ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/math/No09.java ) | O(N) | Easy | |
59
+ | [ 7.Reverse Integer] ( https://leetcode.com/problems/reverse-integer ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/leetcode /math/No07.java ) | | Easy | |
60
+ | [ 9.Palindrome Number] ( https://leetcode.com/problems/palindrome-number ) | [ java] ( https://github.com/tujietg/Algorithm /blob/master/leetcode /math/No09.java ) | O(N) | Easy | |
60
61
61
62
<h3 id =" 6 " >DP</h3 >
62
63
63
64
| Problem | Solution | Time | Difficulty | Note |
64
65
| ------------------------------------------------------------ | ------------------------------------------------------------ | ---- | ---------- | ------------------------------------------------------------ |
65
- | [ 70.Climbing Stairs] ( https://leetcode.com/problems/climbing-stairs ) | [ java] ( https://github.com/tujietg/leetcode /blob/master/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 ) |
66
+ | [ 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 ) |
66
67
67
68
68
69
0 commit comments