Skip to content

add solution for 1008 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 212 commits into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
1d67696
69. Sqrt(x) (java)
bluesword12350 Dec 13, 2018
873ea04
Solution.cpp - 0011
ashwek Dec 13, 2018
739f179
add solution of problem 0848.
Mrtj2016 Dec 13, 2018
38e9e1a
Merge pull request #130 from ashwek/Reverse
yanglbme Dec 13, 2018
fd234a5
Create Solution.py - 0929
ashwek Dec 13, 2018
6b7f6f0
Merge pull request #131 from ashwek/Reverse
yanglbme Dec 14, 2018
610990a
71. Simplify Path (java)
bluesword12350 Dec 14, 2018
dbe68da
add solution of problem 0567.
Mrtj2016 Dec 14, 2018
5eb4cff
add python solution of 0438.
Mrtj2016 Dec 14, 2018
685c0e1
0804 - Solution.py
ashwek Dec 15, 2018
757b5e3
0657 - Solution.py
ashwek Dec 15, 2018
509551d
Merge pull request #133 from ashwek/Reverse
yanglbme Dec 15, 2018
b1b0d01
Merge pull request #132 from biubiubiubiubiubiubiu/master
yanglbme Dec 15, 2018
0cc61b2
docs(solution): update solution tree, add a contributor
yanglbme Dec 15, 2018
da301b8
72. Edit Distance (java)
bluesword12350 Dec 17, 2018
bd7fef4
73. Set Matrix Zeroes (java)
bluesword12350 Dec 18, 2018
0200300
add solution of 0769.
Mrtj2016 Dec 18, 2018
191d3dc
74. Search a 2D Matrix (java)
bluesword12350 Dec 19, 2018
5bd1454
add 0953 folder & cpp(4ms) version
zouwx2cs Dec 19, 2018
9fe6480
Merge pull request #134 from zouwx2cs/master
yanglbme Dec 19, 2018
4928e14
update solution
Neil94n Dec 19, 2018
b113ee4
Merge pull request #135 from Neil94n/neil
yanglbme Dec 19, 2018
ff6a41c
docs(solution): update solution tree and add a contributor
yanglbme Dec 19, 2018
0f6386d
Merge pull request #136 from biubiubiubiubiubiubiu/master
yanglbme Dec 19, 2018
3161697
SyncFork
ashwek Dec 19, 2018
341399d
953 - Solution.py
ashwek Dec 19, 2018
e82d5f8
Update Solution.py
yanglbme Dec 20, 2018
6607ca3
Merge pull request #137 from ashwek/master
yanglbme Dec 20, 2018
10d45dd
76. Minimum Window Substring (java)
bluesword12350 Dec 20, 2018
95cd24d
77. Combinations (java)
bluesword12350 Dec 21, 2018
75a3577
update Solution
Neil94n Dec 21, 2018
33606c6
Merge pull request #138 from Neil94n/neil
yanglbme Dec 21, 2018
e192a3d
0905 - Solution.py
ashwek Dec 21, 2018
8be63be
Merge pull request #139 from ashwek/master
yanglbme Dec 21, 2018
217cdb4
update Solution
Neil94n Dec 22, 2018
8799493
Merge pull request #140 from Neil94n/neil
yanglbme Dec 22, 2018
af34c8b
0832 - cpp & py
ashwek Dec 23, 2018
2f3fe71
Format code
yanglbme Dec 24, 2018
ee6cd28
Merge pull request #141 from ashwek/master
yanglbme Dec 24, 2018
095e374
78. Subsets (java)
bluesword12350 Dec 24, 2018
1914778
add solution of 0762 and 0961.
Mrtj2016 Dec 24, 2018
8bb035f
update 007 solution
Neil94n Dec 24, 2018
5c703c0
change 007 solution by JavaScript
Neil94n Dec 24, 2018
a58c7bb
79. Word Search (java)
bluesword12350 Dec 25, 2018
30c2d0b
554.Brick Wall (python)
Mrtj2016 Dec 25, 2018
87dba92
feat(solution): add solution 0961 [Java]
yanglbme Dec 25, 2018
0ab735a
[ImgBot] Optimize images
ImgBotApp Dec 25, 2018
51cfa83
Merge pull request #142 from doocs/imgbot
yanglbme Dec 25, 2018
dcb7732
80. Remove Duplicates from Sorted Array II (java)
bluesword12350 Dec 26, 2018
41c1b30
Create 0728 - Solution
ashwek Dec 26, 2018
1a06e11
Merge pull request #143 from ashwek/master
yanglbme Dec 27, 2018
9baa402
81. Search in Rotated Sorted Array II (java)
bluesword12350 Dec 27, 2018
953113e
add 0953 cpp version
zouwx2cs Dec 27, 2018
b4919df
add 0953 cpp version
zouwx2cs Dec 27, 2018
5b313e8
add cpp version (40ms)
zouwx2cs Dec 27, 2018
f17d697
Merge branch 'master' of https://github.com/zouwx2cs/leetcode-1
zouwx2cs Dec 27, 2018
8b03796
add 0938 cpp version(40ms)
zouwx2cs Dec 27, 2018
ba481c4
add 0950 folder * cpp version(8ms)
zouwx2cs Dec 27, 2018
7ee042c
add 0797 folder & cpp version(68ms)
zouwx2cs Dec 27, 2018
bc5f023
Merge pull request #144 from zouwx2cs/master
yanglbme Dec 27, 2018
ce38893
85. Maximal Rectangle (java)
bluesword12350 Dec 28, 2018
6acae87
Update solution/0024.Swap Nodes in Pairs/Solution2.cpp
Dec 28, 2018
63be737
Revert "Update solution/0024.Swap Nodes in Pairs/Solution2.cpp"
zouwx2cs Dec 28, 2018
d677146
Update solution/0024.Swap Nodes in Pairs/Solution2.cpp
zouwx2cs Dec 28, 2018
3d33c4f
87. Scramble String (java)
bluesword12350 Dec 29, 2018
3bacdb0
add solution 0961 [JS]
Dec 29, 2018
9bbf1e2
add 0390 folder & cpp(12ms) version
zouwx2cs Dec 29, 2018
65533fc
Merge pull request #146 from LZHD/study
yanglbme Dec 29, 2018
1c8ea6f
docs: update solution tree, add a contributor
yanglbme Dec 29, 2018
060d8b8
Create 0961 - Solution2.py
ashwek Jan 1, 2019
33e4af5
88. Merge Sorted Array (java)
bluesword12350 Jan 2, 2019
0741b3b
add folder & cpp(0ms) version
zouwx2cs Jan 2, 2019
ab93d30
add cpp version(do not use set)
zouwx2cs Jan 2, 2019
e4f82af
add cpp version(use set)
zouwx2cs Jan 2, 2019
521980a
89. Gray Code (java)
bluesword12350 Jan 3, 2019
dedbc8b
91. Decode Ways (java)
bluesword12350 Jan 4, 2019
99f1935
90. Subsets II (java)
bluesword12350 Jan 4, 2019
157bc7b
add No.485 Solution
Neil94n Jan 4, 2019
f6cba8d
Merge branch 'master' of github.com:doocs/leetcode
Neil94n Jan 4, 2019
efc1751
add solution
Neil94n Jan 4, 2019
0f67262
add Solution
Neil94n Jan 4, 2019
3b01882
add solution
Neil94n Jan 4, 2019
120d145
add solution
Neil94n Jan 4, 2019
2fd293c
add solution
Neil94n Jan 4, 2019
ed82802
add solution
Neil94n Jan 4, 2019
40f1ef0
Create 0771 - Solution.py
ashwek Jan 4, 2019
5a04d39
add solution
Neil94n Jan 5, 2019
e596049
Merge branch 'master' of github.com:doocs/leetcode
Neil94n Jan 5, 2019
cdef3a3
add solution
Neil94n Jan 6, 2019
7b2eb06
93. Restore IP Addresses (java)
bluesword12350 Jan 7, 2019
beccbf6
add solution
Neil94n Jan 7, 2019
ea2d436
Merge branch 'master' of github.com:doocs/leetcode
Neil94n Jan 7, 2019
3973a39
95. Unique Binary Search Trees II (java)
bluesword12350 Jan 8, 2019
0778cc9
Create 700 - cpp/py
ashwek Jan 8, 2019
3a25114
Create 0476 - cpp
ashwek Jan 8, 2019
ff3606f
docs: update solution 0476
yanglbme Jan 8, 2019
4b09432
97. Interleaving String (java)
bluesword12350 Jan 9, 2019
133cdf7
add Solution
Neil94n Jan 9, 2019
6dc4fd7
Merge branch 'master' of github.com:doocs/leetcode
Neil94n Jan 9, 2019
337996b
add Solution
Neil94n Jan 9, 2019
e335c21
98. Validate Binary Search Tree (java)
bluesword12350 Jan 10, 2019
5acb0e8
99. Recover Binary Search Tree (java)
bluesword12350 Jan 11, 2019
6235617
add 0509 folder & cpp version
zouwx2cs Jan 11, 2019
a3aa429
Improve performance
zouwx2cs Jan 11, 2019
8d63741
Create 0204 - Solution.cpp
ashwek Jan 13, 2019
01af732
docs: update SOLUTION_TREE
yanglbme Jan 14, 2019
2db2f92
Merge branch 'master' of https://github.com/doocs/leetcode
zouwx2cs Jan 14, 2019
dda367b
0329 & 0572 folders & cpp solution
zouwx2cs Jan 14, 2019
e5c550d
100. Same Tree (java)
bluesword12350 Jan 14, 2019
2eb6e15
add 0493 folder & cpp vserion
zouwx2cs Jan 14, 2019
7bc0dc7
Merge branch 'master' of https://github.com/doocs/leetcode
zouwx2cs Jan 14, 2019
4418fb8
Update high-performance solution(cpp 4ms)
zouwx2cs Jan 14, 2019
cbfb9df
Create Solution.cpp
zouwx2cs Jan 14, 2019
186002f
101. Symmetric Tree (java)
bluesword12350 Jan 15, 2019
c28f2f0
103. Binary Tree Zigzag Level Order Traversal (java)
bluesword12350 Jan 16, 2019
4974ed3
Create Solution.cpp
zouwx2cs Jan 16, 2019
dc15a6c
Create Solution.cpp
zouwx2cs Jan 16, 2019
27c77d0
add n*O(logn) solution (cpp)
zouwx2cs Jan 16, 2019
5fb7995
Create Solution.cpp
zouwx2cs Jan 16, 2019
1fc4f28
add cpp version, use three way partition algorithm
zouwx2cs Jan 17, 2019
a837521
add DFS solution(low efficiency)
zouwx2cs Jan 17, 2019
ead3083
104. Maximum Depth of Binary Tree (java)
bluesword12350 Jan 17, 2019
c0a1ec4
create 0807 folder & cpp solution
zouwx2cs Jan 17, 2019
ec4aab4
create 0941 folder & cpp version
zouwx2cs Jan 17, 2019
6dcf4b7
107. Binary Tree Level Order Traversal II (java)
bluesword12350 Jan 18, 2019
8a98916
add cpp solution
zouwx2cs Jan 18, 2019
8649a12
add cpp solution
zouwx2cs Jan 18, 2019
15c0d42
add Space Complexity( O(n) ) & simpler solution
zouwx2cs Jan 18, 2019
5b901b5
add cpp solution
zouwx2cs Jan 19, 2019
e8aedb4
108. Convert Sorted Array to Binary Search Tree (java)
bluesword12350 Jan 21, 2019
e59a68f
docs: update SOLUTION_TREE
yanglbme Jan 21, 2019
c257aeb
202.Happy Number(java)
Wushiyii Jan 21, 2019
581dd73
Create 0423.Reconstruct Original Digits from English
zouwx2cs Jan 21, 2019
05aa806
commit error
zouwx2cs Jan 21, 2019
40d8fac
add 0423 folder & cpp solution
zouwx2cs Jan 21, 2019
68f8b47
Merge pull request #147 from Wushiyii/mysolu-leetcode
yanglbme Jan 21, 2019
4ab7a26
docs: update solution 202, add a new contributor @Wushiyii
yanglbme Jan 21, 2019
d062599
109. Convert Sorted List to Binary Search Tree (java)
bluesword12350 Jan 22, 2019
989e33e
mathmatics solution
zouwx2cs Jan 22, 2019
6f67f4c
mathmatics solution & speed up
zouwx2cs Jan 22, 2019
799def9
区间离散化解法(低效 120ms)
zouwx2cs Jan 22, 2019
ebb4eea
commit error
zouwx2cs Jan 22, 2019
de52797
区间离散化解法(低效 120ms)
zouwx2cs Jan 22, 2019
eb97573
110. Balanced Binary Tree (java)
bluesword12350 Jan 23, 2019
0156da2
111. Minimum Depth of Binary Tree (java)
bluesword12350 Jan 24, 2019
1687264
Create 0976 folder & Add cpp solution
zouwx2cs Jan 24, 2019
20e1216
Delete 0976.Largest Perimeter Triangle
zouwx2cs Jan 24, 2019
31e308e
Create 0976 folder & Add cpp solution
zouwx2cs Jan 24, 2019
1d5315c
112. Path Sum (java)
bluesword12350 Jan 25, 2019
0d57afe
Update Readme.md for Open Collective
monkeywithacupcake Jan 26, 2019
6c4203c
Merge pull request #148 from monkeywithacupcake/patch-1
yanglbme Jan 27, 2019
7f8d973
docs: udpate SOLUTION_TREE and README
yanglbme Jan 27, 2019
5217c9f
113. Path Sum II (java)
bluesword12350 Jan 28, 2019
f26e679
114. Flatten Binary Tree to Linked List (java)
bluesword12350 Jan 29, 2019
a879238
115. Distinct Subsequences (java)
bluesword12350 Jan 30, 2019
c963241
116. Populating Next Right Pointers in Each Node (java)
bluesword12350 Jan 31, 2019
6042353
Create 65 - Python
ashwek Jan 31, 2019
e5915fe
917 - Python, C++
ashwek Jan 31, 2019
db42d21
117. Populating Next Right Pointers in Each Node II (java)
bluesword12350 Feb 1, 2019
241e121
118. Pascal's Triangle (java)
bluesword12350 Feb 2, 2019
9978be7
977 - C++
ashwek Feb 5, 2019
8185545
feat: add solution 0977 [Java]
yanglbme Feb 6, 2019
778ff28
docs: update solution_tree
yanglbme Feb 6, 2019
5803fcf
944 - Python
ashwek Feb 6, 2019
525ad3d
349 - Python
ashwek Feb 7, 2019
b538a5f
945 - Cpp
ashwek Feb 7, 2019
8474fb7
Add solution 0977 solution.js
Mcnwork2018 Feb 8, 2019
6e3400a
Merge pull request #149 from Mcnwork2018/dev
yanglbme Feb 8, 2019
1fe241a
119. Pascal's Triangle II (java)
bluesword12350 Feb 11, 2019
1c995e9
120. Triangle (java)
bluesword12350 Feb 12, 2019
68dd39b
121. Best Time to Buy and Sell Stock (java)
bluesword12350 Feb 13, 2019
0130596
Create Solution 0985 [Solution.py]
BradyHu Feb 13, 2019
73a50ae
Update Solution.py
yanglbme Feb 13, 2019
5f90658
Merge pull request #150 from BradyHu/dev
yanglbme Feb 13, 2019
986cf0b
122. Best Time to Buy and Sell Stock II (java)
bluesword12350 Feb 14, 2019
76d9806
123. Best Time to Buy and Sell Stock III (java)
bluesword12350 Feb 15, 2019
abdd47d
98 - cpp
ashwek Feb 16, 2019
9a52d27
124. Binary Tree Maximum Path Sum (java)
bluesword12350 Feb 18, 2019
49352d7
Add solution 0905 solution.js
Mcnwork2018 Feb 18, 2019
1f998bf
Add solution 0985 Solution.js
Mcnwork2018 Feb 18, 2019
3be42d0
Merge pull request #151 from Mcnwork2018/dev
yanglbme Feb 18, 2019
a68d3d6
500 - Python
ashwek Feb 18, 2019
393d096
125. Valid Palindrome (java)
bluesword12350 Feb 19, 2019
3fb050b
126. Word Ladder II (java)
bluesword12350 Feb 20, 2019
12c8c7c
128. Longest Consecutive Sequence (java)
bluesword12350 Feb 21, 2019
e660f34
129. Sum Root to Leaf Numbers (java)
bluesword12350 Feb 22, 2019
2e19617
docs: update SOLUTION_TREE
yanglbme Feb 22, 2019
4cb69ba
131. Palindrome Partitioning (java)
bluesword12350 Feb 25, 2019
ef1612e
132. Palindrome Partitioning II (java)
bluesword12350 Feb 26, 2019
079bb88
133. Clone Graph (java)
bluesword12350 Feb 27, 2019
afd91e5
Delete 0001 Solution2.js and Solution3.js, Update 0001 Solution.js
Mcnwork2018 Feb 27, 2019
eb0227a
Merge branch 'Mcnwork2018'
Mcnwork2018 Feb 27, 2019
6232ee2
Update 0002 Solution.js, Organize code structure
Mcnwork2018 Feb 27, 2019
dede646
Delete 0007 Solution2.js, Update 0007 Solution.js, Organize Document …
Mcnwork2018 Feb 27, 2019
e332cef
Update 0118 Solution.js
Mcnwork2018 Feb 27, 2019
b94aa23
Add 0509 Solution.js and README.md
Mcnwork2018 Feb 27, 2019
f49f0a4
Add 0561 Solution.js and README.md
Mcnwork2018 Feb 27, 2019
b0f34a7
Add 0832 Solution.js and README.md
Mcnwork2018 Feb 27, 2019
408ab73
Add 0867 Solution.js and README.md
Mcnwork2018 Feb 27, 2019
11916e0
Add 0922 Solution.js and README.md
Mcnwork2018 Feb 27, 2019
4573bfd
Add 0905 README.md
Mcnwork2018 Feb 27, 2019
f0282c0
Update 0977 Solution.js
Mcnwork2018 Feb 27, 2019
b651420
Update 0985 Solution.js and Add 0985 README.md
Mcnwork2018 Feb 27, 2019
fdba63f
Merge branch 'Mcnwork2018'
Mcnwork2018 Feb 27, 2019
a3527c7
docs: update Solution.js
yanglbme Feb 27, 2019
fbf332d
134. Gas Station (java)
bluesword12350 Feb 28, 2019
2101946
135. Candy (java)
bluesword12350 Mar 1, 2019
6c91538
139. Word Break (java)
bluesword12350 Mar 4, 2019
3a529fd
140. Word Break II (java)
bluesword12350 Mar 5, 2019
d18f697
docs: update SOLUTION_TREE.md
yanglbme Mar 8, 2019
f402ed0
Add 147 Solution.java and README.md
Mrzhudky Mar 11, 2019
b140fa7
Merge pull request #154 from Mrzhudky/dev
yanglbme Mar 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
None.
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<a href="https://github.com/doocs/leetcode/issues"><img src="https://img.shields.io/github/issues/doocs/leetcode.svg" alt="issues"></a>
<a href="https://github.com/doocs/leetcode/stargazers"><img src="https://img.shields.io/github/stars/doocs/leetcode.svg" alt="stars"></a>
<a href="https://github.com/doocs/leetcode/network/members"><img src="https://img.shields.io/github/forks/doocs/leetcode.svg" alt="forks"></a>
<!-- <a href="#backers" alt="sponsors on Open Collective"><img src="https://opencollective.com/leetcode-280/backers/badge.svg" /></a>
<a href="#sponsors" alt="Sponsors on Open Collective"><img src="https://opencollective.com/leetcode-280/sponsors/badge.svg" /></a> -->
</p>

## Introduction
Expand All @@ -26,13 +28,6 @@ I'm looking for long-term contributors/partners to this repo! Send me [PRs](http
![how-to-contribute](/img/how-to-contribute-yanglbme.png)

## Contributors
This project exists thanks to all the people who contribute.

" 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) ".

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
| <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> |
|---|---|---|---|---|---|---|---|
| <center> [<img src="https://avatars3.githubusercontent.com/u/20679510?v=4" width="80px;"/>](https://github.com/Mrzhudky) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/44309823?v=4" width="80px;"/>](https://github.com/KongJHong) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/18181519?v=4" width="80px;"/>](https://github.com/limbowandering) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/37685012?v=4" width="80px;"/>](https://github.com/jxdeng3989) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/44314231?v=4" width="80px;"/>](https://github.com/igayhub) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/30177307?v=4" width="80px;"/>](https://github.com/MCN1998) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/5793058?v=4" width="80px;"/>](https://github.com/Fairyhead) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/24841082?v=4" width="80px;"/>](https://github.com/zhng1456) </center> |
| <center> [<img src="https://avatars3.githubusercontent.com/u/32598987?v=4" width="80px;"/>](https://github.com/xiapengchng) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/37660444?v=4" width="80px;"/>](https://github.com/Mcnwork2018) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/22535595?v=4" width="80px;"/>](https://github.com/bluesword12350) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/39827514?v=4" width="80px;"/>](https://github.com/ashwek) </center> | <center> [<img src="https://avatars3.githubusercontent.com/u/25475525?v=4" width="80px;"/>](https://github.com/Mrtj2016) </center> |

<!-- ALL-CONTRIBUTORS-LIST:END -->
<a href="https://github.com/doocs/leetcode/graphs/contributors"><img src="https://opencollective.com/leetcode-280/contributors.svg?width=890&button=false" /></a>
Loading