Skip to content

My LeetCode Solutions. 我的leetcode解题源码.

Notifications You must be signed in to change notification settings

menglingqin/leetcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My leetcode solutions

Language: java javascript
Last updated: 2017-07-28

The source code was fetched by the tool leetcode-spider.

# Problems Solutions Difficulty Acceptance Paid-Only
001 two-sum javascript java Easy 34.12%
002 add-two-numbers javascript java Medium 27.64%
003 longest-substring-without-repeating-characters javascript java Medium 24.27%
004 median-of-two-sorted-arrays javascript java Hard 21.61%
005 longest-palindromic-substring java Medium 25.17%
006 zigzag-conversion java Medium 26.71%
007 reverse-integer java Easy 24.32%
008 string-to-integer-atoi java Medium 13.96%
009 palindrome-number java Easy 35.19%
010 regular-expression-matching java Hard 24.05%
011 container-with-most-water java Medium 36.51%
012 integer-to-roman java Medium 44.51%
013 roman-to-integer java Easy 45.52%
014 longest-common-prefix java Easy 31.44%
015 3sum java Medium 21.59%
016 3sum-closest java Medium 31.04%
017 letter-combinations-of-a-phone-number java Medium 34.28%
018 4sum java Medium 26.65%
019 remove-nth-node-from-end-of-list java Medium 33.34%
020 valid-parentheses java Easy 33.29%
021 merge-two-sorted-lists java Easy 38.99%
022 generate-parentheses java Medium 44.64%
023 merge-k-sorted-lists java Hard 27.08%
024 swap-nodes-in-pairs java Medium 38.20%
025 reverse-nodes-in-k-group java Hard 30.62%
026 remove-duplicates-from-sorted-array java Easy 35.50%
027 remove-element java Easy 38.84%
028 implement-strstr java Easy 27.97%
029 divide-two-integers java Medium 15.97%
030 substring-with-concatenation-of-all-words java Hard 21.94%
031 next-permutation java Medium 28.74%
032 longest-valid-parentheses java Hard 23.04%
033 search-in-rotated-sorted-array java Medium 32.11%
034 search-for-a-range java Medium 31.32%
035 search-insert-position java Easy 39.66%
036 valid-sudoku java Medium 35.55%
037 sudoku-solver java Hard 29.95%
038 count-and-say java Easy 34.41%
039 combination-sum java Medium 38.30%
040 combination-sum-ii java Medium 33.45%
041 first-missing-positive java Hard 25.46%
042 trapping-rain-water java Hard 36.59%
043 multiply-strings java Medium 26.97%
044 wildcard-matching java Hard 19.93%
045 jump-game-ii java Hard 26.17%
046 permutations java Medium 43.36%
047 permutations-ii java Medium 32.57%
048 rotate-image java Medium 38.38%
049 group-anagrams java Medium 34.36%
050 powx-n java Medium 26.40%
051 n-queens java Hard 30.81%
052 n-queens-ii java Hard 44.63%
053 maximum-subarray java Easy 39.51%
054 spiral-matrix java Medium 25.83%
055 jump-game java Medium 29.51%
056 merge-intervals java Medium 29.89%
057 insert-interval java Hard 27.46%
058 length-of-last-word java Easy 31.79%
059 spiral-matrix-ii java Medium 39.45%
060 permutation-sequence java Medium 28.34%
061 rotate-list java Medium 24.34%
062 unique-paths java Medium 40.89%
063 unique-paths-ii java Medium 31.62%
064 minimum-path-sum java Medium 38.34%
065 valid-number javascript Hard 12.71%
066 plus-one java Easy 38.47%
067 add-binary java Easy 32.22%
068 text-justification java Hard 18.95%
069 sqrtx java Easy 27.75%
070 climbing-stairs java Easy 39.85%
071 simplify-path java Medium 25.12%
072 edit-distance java Hard 31.57%
073 set-matrix-zeroes java Medium 35.86%
074 search-a-2d-matrix java Medium 35.11%
075 sort-colors java Medium 37.81%
076 minimum-window-substring java Hard 25.15%
077 combinations java Medium 39.44%
078 subsets java Medium 40.11%
079 word-search java Medium 26.61%
080 remove-duplicates-from-sorted-array-ii java Medium 35.85%
081 search-in-rotated-sorted-array-ii java Medium 32.78%
082 remove-duplicates-from-sorted-list-ii java Medium 29.38%
083 remove-duplicates-from-sorted-list java Easy 39.76%
084 largest-rectangle-in-histogram java Hard 26.56%
085 maximal-rectangle java Hard 27.67%
086 partition-list java Medium 32.53%
087 scramble-string java Hard 29.05%
088 merge-sorted-array java Easy 31.95%
089 gray-code java Medium 40.90%
090 subsets-ii java Medium 35.91%
091 decode-ways java Medium 19.53%
092 reverse-linked-list-ii java Medium 30.61%
093 restore-ip-addresses java Medium 27.15%
094 binary-tree-inorder-traversal java Medium 46.32%
095 unique-binary-search-trees-ii java Medium 31.31%
096 unique-binary-search-trees java Medium 40.84%
097 interleaving-string java Hard 24.53%
098 validate-binary-search-tree javascript java Medium 23.20%
099 recover-binary-search-tree java Hard 29.84%
100 same-tree java Easy 46.37%
101 symmetric-tree java Easy 38.57%
103 binary-tree-zigzag-level-order-traversal java Medium 34.34%
105 construct-binary-tree-from-preorder-and-inorder-traversal java Medium 32.07%
106 construct-binary-tree-from-inorder-and-postorder-traversal java Medium 31.99%
108 convert-sorted-array-to-binary-search-tree java Easy 41.99%
109 convert-sorted-list-to-binary-search-tree java Medium 33.88%
112 path-sum java Easy 33.87%
113 path-sum-ii java Medium 33.40%
114 flatten-binary-tree-to-linked-list java Medium 34.89%
115 distinct-subsequences java Hard 31.42%
116 populating-next-right-pointers-in-each-node java Medium 36.92%
117 populating-next-right-pointers-in-each-node-ii java Medium 33.74%
118 pascals-triangle java Easy 38.37%
119 pascals-triangle-ii java Easy 36.64%
120 triangle java Medium 33.62%
121 best-time-to-buy-and-sell-stock java Easy 40.97%
122 best-time-to-buy-and-sell-stock-ii java Easy 46.84%
123 best-time-to-buy-and-sell-stock-iii java Hard 29.14%
124 binary-tree-maximum-path-sum java Hard 25.96%
125 valid-palindrome java Easy 26.12%
126 word-ladder-ii java Hard 14.07%
127 word-ladder java Medium 19.35%
128 longest-consecutive-sequence java Hard 36.63%
129 sum-root-to-leaf-numbers java Medium 36.46%
130 surrounded-regions java Medium 18.31%
131 palindrome-partitioning java Medium 32.96%
132 palindrome-partitioning-ii java Hard 24.08%
133 clone-graph java Medium 25.11%
134 gas-station java Medium 29.23%
135 candy java Hard 24.60%
136 single-number java Easy 54.28%
137 single-number-ii java Medium 41.35%
138 copy-list-with-random-pointer java Medium 26.33%
139 word-break java Medium 29.70%
140 word-break-ii java Hard 23.12%
141 linked-list-cycle java Easy 35.39%
142 linked-list-cycle-ii java Medium 31.01%
143 reorder-list java Medium 25.50%
144 binary-tree-preorder-traversal java Medium 44.81%
145 binary-tree-postorder-traversal java Hard 39.99%
146 lru-cache java Hard 17.53%
147 insertion-sort-list java Medium 32.95%
148 sort-list java Medium 28.57%
149 max-points-on-a-line java Hard 15.31%
150 evaluate-reverse-polish-notation java Medium 27.05%
151 reverse-words-in-a-string java Medium 15.71%
152 maximum-product-subarray java Medium 25.54%
153 find-minimum-in-rotated-sorted-array java Medium 39.73%
154 find-minimum-in-rotated-sorted-array-ii java Hard 37.02%
155 min-stack java Easy 28.41%
160 intersection-of-two-linked-lists java Easy 30.51%
162 find-peak-element java Medium 37.25%
218 the-skyline-problem java Hard 27.00%
230 kth-smallest-element-in-a-bst java Medium 43.63%
260 single-number-iii java Medium 51.33%
496 next-greater-element-i java Easy 56.84%
503 next-greater-element-ii java Medium 47.14%

About

My LeetCode Solutions. 我的leetcode解题源码.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.5%
  • JavaScript 2.5%