1
1
<p align =" center " >
2
- <a href =" https://github.com/doocs/leetcode " ><img src =" http://p9ucdlghd.bkt.clouddn.com/leetcode-github.png " alt =" LeetCode-GitHub " ></a >
2
+ <a href =" https://github.com/doocs/leetcode " ><img src =" http://p9ucdlghd.bkt.clouddn.com/leetcode-github-yanglbme .png " alt =" LeetCode-GitHub-yanglbme " ></a >
3
3
</p >
4
4
5
5
<p align =" center " >
6
- <a href =" https://github.com/doocs/leetcode " ><img src =" https://img.shields.io/badge/Lang -Java%2FPython%2FJS %2FCPP%2FGo%2F ...-blue.svg " alt =" Language " ></a >
6
+ <a href =" https://github.com/doocs/leetcode " ><img src =" https://img.shields.io/badge/lang -Java%2FPython%2FRuby %2FCPP%2FJS%2FGo ...-blue.svg " alt =" Language " ></a >
7
7
<a href =" http://makeapullrequest.com " ><img src =" https://img.shields.io/badge/PRs-Welcome-brightgreen.svg " alt =" PRs Welcome " ></a >
8
8
<a href =" https://github.com/doocs/leetcode/issues " ><img src =" https://img.shields.io/github/issues/doocs/leetcode.svg " alt =" issues " ></a >
9
9
<a href =" https://github.com/doocs/leetcode/stargazers " ><img src =" https://img.shields.io/github/stars/doocs/leetcode.svg " alt =" stars " ></a >
10
10
<a href =" https://github.com/doocs/leetcode/network/members " ><img src =" https://img.shields.io/github/forks/doocs/leetcode.svg " alt =" forks " ></a >
11
11
</p >
12
12
13
13
## Introduction
14
- Complete solutions to Leetcode problems, updated daily.
14
+ Complete [ solutions] ( https://github.com/doocs/leetcode/tree/master/solution ) to Leetcode problems, [ updated daily] ( https://github.com/doocs/leetcode/projects/1 ) .
15
15
16
16
## Solution List
17
17
@@ -21,22 +21,30 @@ Complete solutions to Leetcode problems, updated daily.
21
21
| ---| ---| ---|
22
22
| 001 | [ Two Sum] ( https://github.com/doocs/leetcode/tree/master/solution/001.Two%20Sum ) | ` Array ` , ` Hash Table ` |
23
23
| 007 | [ Reverse Integer] ( https://github.com/doocs/leetcode/tree/master/solution/007.Reverse%20Integer ) | ` Math ` |
24
+ | 009 | [ Palindrome Number] ( https://github.com/doocs/leetcode/tree/master/solution/009.Palindrome%20Number ) | ` Math ` |
24
25
| 013 | [ Roman to Integer] ( https://github.com/doocs/leetcode/tree/master/solution/013.Roman%20to%20Integer ) | ` Math ` , ` String ` |
25
26
| 014 | [ Longest Common Prefix] ( https://github.com/doocs/leetcode/tree/master/solution/014.Longest%20Common%20Prefix ) | ` String ` |
26
27
| 020 | [ Valid Parentheses] ( https://github.com/doocs/leetcode/tree/master/solution/020.Valid%20Parentheses ) | ` String ` , ` Stack ` |
27
28
| 021 | [ Merge Two Sorted Lists] ( https://github.com/doocs/leetcode/tree/master/solution/021.Merge%20Two%20Sorted%20Lists ) | ` Linked List ` |
29
+ | 028 | [ Implement strStr()] ( https://github.com/doocs/leetcode/tree/master/solution/028.Implement%20strStr() ) | ` Two Pointers ` , ` String ` |
30
+ | 035 | [ Search Insert Position] ( https://github.com/doocs/leetcode/tree/master/solution/035.Search%20Insert%20Position ) | ` Array ` , ` Binary Search ` |
28
31
| 053 | [ Maximum Subarray] ( https://github.com/doocs/leetcode/tree/master/solution/053.Maximum%20Subarray ) | ` Array ` , ` Divide and Conquer ` , ` Dynamic Programming ` |
29
32
| 070 | [ Climbing Stairs] ( https://github.com/doocs/leetcode/tree/master/solution/070.Climbing%20Stairs ) | ` Dynamic Programming ` |
30
33
| 083 | [ Remove Duplicates from Sorted List] ( https://github.com/doocs/leetcode/tree/master/solution/083.Remove%20Duplicates%20from%20Sorted%20List ) | ` Linked List ` |
31
34
| 136 | [ Single Number] ( https://github.com/doocs/leetcode/tree/master/solution/136.Single%20Number ) | ` Hash Table ` , ` Bit Manipulation ` |
35
+ | 141 | [ Linked List Cycle] ( https://github.com/doocs/leetcode/tree/master/solution/141.Linked%20List%20Cycle ) | ` Linked List ` , ` Two Pointers ` |
32
36
| 189 | [ Rotate Array] ( https://github.com/doocs/leetcode/tree/master/solution/189.Rotate%20Array ) | ` Array ` |
33
37
| 198 | [ House Robber] ( https://github.com/doocs/leetcode/tree/master/solution/198.House%20Robber ) | ` Dynamic Programming ` |
34
38
| 203 | [ Remove Linked List Elements] ( https://github.com/doocs/leetcode/tree/master/solution/203.Remove%20Linked%20List%20Elements ) | ` Linked List ` |
35
39
| 231 | [ Power of Two] ( https://github.com/doocs/leetcode/tree/master/solution/231.Power%20of%20Two ) | ` Math ` , ` Bit Manipulation ` |
40
+ | 234 | [ Palindrome Linked List] ( https://github.com/doocs/leetcode/tree/master/solution/234.Palindrome%20Linked%20List ) | ` Linked List ` , ` Two Pointers ` |
36
41
| 235 | [ Lowest Common Ancestor of a Binary Search Tree] ( https://github.com/doocs/leetcode/tree/master/solution/235.Lowest%20Common%20Ancestor%20of%20a%20Binary%20Search%20Tree ) | ` Tree ` |
37
42
| 237 | [ Delete Node in a Linked List] ( https://github.com/doocs/leetcode/tree/master/solution/237.Delete%20Node%20in%20a%20Linked%20List ) | ` Linked List ` |
38
43
| 344 | [ Reverse String] ( https://github.com/doocs/leetcode/tree/master/solution/344.Reverse%20String ) | ` Two Pointers ` , ` String ` |
44
+ | 581 | [ Shortest Unsorted Continuous Subarray] ( https://github.com/doocs/leetcode/tree/master/solution/581.Shortest%20Unsorted%20Continuous%20Subarray ) | ` Array ` |
45
+ | 695 | [ Max Area of Island] ( https://github.com/doocs/leetcode/tree/master/solution/695.Max%20Area%20of%20Island ) | ` Array ` , ` Depth-first Search ` |
39
46
| 703 | [ Kth Largest Element in a Stream] ( https://github.com/doocs/leetcode/tree/master/solution/703.Kth%20Largest%20Element%20in%20a%20Stream ) | ` Heap ` |
47
+ | 707 | [ Design Linked List] ( https://github.com/doocs/leetcode/tree/master/solution/707.Design%20Linked%20List ) | ` Linked List ` , ` Design ` |
40
48
| 876 | [ Middle of the Linked List] ( https://github.com/doocs/leetcode/tree/master/solution/876.Middle%20of%20the%20Linked%20List ) | ` Linked List ` |
41
49
42
50
@@ -45,12 +53,18 @@ Complete solutions to Leetcode problems, updated daily.
45
53
| # | Title | Tags |
46
54
| ---| ---| ---|
47
55
| 002 | [ Add Two Numbers] ( https://github.com/doocs/leetcode/tree/master/solution/002.Add%20Two%20Numbers ) | ` Linked List ` , ` Math ` |
56
+ | 003 | [ Longest Substring Without Repeating Characters] ( https://github.com/doocs/leetcode/tree/master/solution/003.Longest%20Substring%20Without%20Repeating%20Characters ) | ` Hash Table ` , ` Two Pointers ` , ` String ` |
57
+ | 005 | [ Longest Palindromic Substring] ( https://github.com/doocs/leetcode/tree/master/solution/005.Longest%20Palindromic%20Substring ) | ` String ` , ` Dynamic Programming ` |
48
58
| 015 | [ 3Sum] ( https://github.com/doocs/leetcode/tree/master/solution/015.3Sum ) | ` Array ` , ` Two Pointers ` |
59
+ | 018 | [ 4Sum] ( https://github.com/doocs/leetcode/tree/master/solution/018.4Sum ) | ` Array ` , ` Hash Table ` , ` Two Pointers ` |
49
60
| 019 | [ Remove Nth Node From End of List] ( https://github.com/doocs/leetcode/tree/master/solution/019.Remove%20Nth%20Node%20From%20End%20of%20List ) | ` Linked List ` , ` Two Pointers ` |
50
61
| 024 | [ Swap Nodes in Pairs] ( https://github.com/doocs/leetcode/tree/master/solution/024.Swap%20Nodes%20in%20Pairs ) | ` Linked List ` |
51
62
| 031 | [ Next Permutation] ( https://github.com/doocs/leetcode/tree/master/solution/031.Next%20Permutation ) | ` Array ` |
52
63
| 046 | [ Permutations] ( https://github.com/doocs/leetcode/tree/master/solution/046.Permutations ) | ` Backtracking ` |
53
64
| 047 | [ Permutations II] ( https://github.com/doocs/leetcode/tree/master/solution/047.Permutations%20II ) | ` Backtracking ` |
65
+ | 054 | [ Spiral Matrix] ( https://github.com/doocs/leetcode/tree/master/solution/054.Spiral%20Matrix ) | ` Array ` |
66
+ | 059 | [ Spiral Matrix II] ( https://github.com/doocs/leetcode/tree/master/solution/059.Spiral%20Matrix%20II ) | ` Array ` |
67
+ | 061 | [ Rotate List] ( https://github.com/doocs/leetcode/tree/master/solution/061.Rotate%20List ) | ` Linked List ` , ` Two Pointers ` |
54
68
| 062 | [ Unique Paths] ( https://github.com/doocs/leetcode/tree/master/solution/062.Unique%20Paths ) | ` Array ` , ` Dynamic Programming ` |
55
69
| 063 | [ Unique Paths II] ( https://github.com/doocs/leetcode/tree/master/solution/063.Unique%20Paths%20II ) | ` Array ` , ` Dynamic Programming ` |
56
70
| 075 | [ Sort Colors] ( https://github.com/doocs/leetcode/tree/master/solution/075.Sort%20Colors ) | ` Array ` , ` Two Pointers ` , ` Sort ` |
@@ -62,30 +76,38 @@ Complete solutions to Leetcode problems, updated daily.
62
76
| 127 | [ Word Ladder] ( https://github.com/doocs/leetcode/tree/master/solution/127.Word%20Ladder ) | ` Breadth-first Search ` |
63
77
| 130 | [ Surrounded Regions] ( https://github.com/doocs/leetcode/tree/master/solution/130.Surrounded%20Regions ) | ` Depth-first Search ` , ` Breadth-first Search ` , ` Union Find ` |
64
78
| 137 | [ Single Number II] ( https://github.com/doocs/leetcode/tree/master/solution/137.Single%20Number%20II ) | ` Bit Manipulation ` |
79
+ | 142 | [ Linked List Cycle II] ( https://github.com/doocs/leetcode/tree/master/solution/142.Linked%20List%20Cycle%20II ) | ` Linked List ` , ` Two Pointers ` |
80
+ | 143| [ Reorder List] ( https://github.com/doocs/leetcode/tree/master/solution/143.Reorder%20List ) | ` Linked List ` |
65
81
| 144 | [ Binary Tree Preorder Traversal] ( https://github.com/doocs/leetcode/tree/master/solution/144.Binary%20Tree%20Preorder%20Traversal ) | ` Stack ` , ` Tree ` |
66
82
| 150 | [ Evaluate Reverse Polish Notation] ( https://github.com/doocs/leetcode/tree/master/solution/150.Evaluate%20Reverse%20Polish%20Notation ) | ` Stack ` |
67
83
| 153 | [ Find Minimum in Rotated Sorted Array] ( https://github.com/doocs/leetcode/tree/master/solution/153.Find%20Minimum%20in%20Rotated%20Sorted%20Array ) | ` Array ` , ` Binary Search ` |
84
+ | 328 | [ Odd Even Linked List] ( https://github.com/doocs/leetcode/tree/master/solution/328.Odd%20Even%20Linked%20List ) | ` Linked List ` |
68
85
69
86
70
87
### Hard
71
88
72
89
| # | Title | Tags |
73
90
| ---| ---| ---|
91
+ | 004 | [ Median of Two Sorted Arrays] ( https://github.com/doocs/leetcode/tree/master/solution/004.Median%20of%20Two%20Sorted%20Arrays ) | ` Array ` , ` Binary Search ` , ` Divide and Conquer ` |
74
92
| 023 | [ Merge k Sorted Lists] ( https://github.com/doocs/leetcode/tree/master/solution/023.Merge%20k%20Sorted%20Lists ) | ` Linked List ` , ` Divide and Conquer ` , ` Heap ` |
75
93
| 032 | [ Longest Valid Parentheses] ( https://github.com/doocs/leetcode/tree/master/solution/032.Longest%20Valid%20Parentheses ) | ` String ` , ` Dynamic Programming ` |
76
94
| 084 | [ Largest Rectangle in Histogram] ( https://github.com/doocs/leetcode/tree/master/solution/084.Largest%20Rectangle%20in%20Histogram ) | ` Array ` , ` Stack ` |
77
95
| 145 | [ Binary Tree Postorder Traversal] ( https://github.com/doocs/leetcode/tree/master/solution/145.Binary%20Tree%20Postorder%20Traversal ) | ` Stack ` , ` Tree ` |
78
96
| 295 | [ Find Median from Data Stream] ( https://github.com/doocs/leetcode/tree/master/solution/295.Find%20Median%20from%20Data%20Stream ) | ` Heap ` , ` Design ` |
79
97
98
+
80
99
## Contributions
81
- I'm looking for long-term contributors/partners to this repo! Send me PRs if you're interested! See the following:
100
+ I'm looking for long-term contributors/partners to this repo! Send me [ PRs] ( https://github.com/doocs/leetcode/pulls ) if you're interested! See the following:
82
101
- Fork this repository to your own GitHub account and then [ clone] ( https://help.github.com/articles/cloning-a-repository/ ) it to your local device.
83
102
- Submit a pull request with your changes!
84
103
85
104
## Contributors
86
105
106
+ " If you want to go fast, go alone. If you want to go far, go together. And that's the spirit of [ teamwork] ( https://github.com/doocs/leetcode/graphs/contributors ) ".
107
+
87
108
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
88
- | <center > [ <img src =" https://avatars3.githubusercontent.com/u/21008209?v=4 " width =" 100px; " /><br /><sub ><b >yanglbme</b ></sub >] ( https://github.com/yanglbme ) <br />[ 💻] ( https://github.com/doocs/leetcode/commits?author=yanglbme " Code ") </center > | <center > [ <img src =" https://avatars3.githubusercontent.com/u/23625436?v=4 " width =" 100px; " /><br /><sub ><b >chakyam</b ></sub >] ( https://github.com/chakyam ) <br />[ 💻] ( https://github.com/doocs/leetcode/commits?author=chakyam " Code ") </center > |
89
- | ---| ---|
109
+ | <center> [<img src="https://avatars3.githubusercontent.com/u/21008209?v=4" width="80px;"/>](https://github.com/yanglbme) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/23625436?v=4" width="80px;"/>](https://github.com/chakyam) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/10081554?v=4" width="80px;"/>](https://github.com/zhkmxx9302013) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/40383345?v=4" width="80px;"/>](https://github.com/MarkKuang1991) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/12371194?v=4" width="80px;"/>](https://github.com/fonxian) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/25222367?v=4" width="80px;"/>](https://github.com/zhanary) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/42396616?v=4" width="80px;"/>](https://github.com/ZhouTingZhaobiu) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/31923541?v=4" width="80px;"/>](https://github.com/zouwx2cs) </center> |
110
+ | ---| ---| ---| ---| ---| ---| ---| ---|
111
+ | <center > [ <img src =" https://avatars3.githubusercontent.com/u/20679510?v=4 " width =" 80px; " />] ( https://github.com/Mrzhudky ) </center > |
90
112
91
113
<!-- ALL-CONTRIBUTORS-LIST:END -->
0 commit comments