Skip to content

My LeetCode solution with C++ and JAVA. 我在Leetcode刷题的解题代码,主要使用C++,部分使用Java。一些有意思的题目会放到博客里。

License

Notifications You must be signed in to change notification settings

liaoweiquan/MyLeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✏️ Leetcode Solutions with Cpp,Java

Update time: 2020-01-11 21:08:37

Auto created by leetcode_generate

I have solved 372 / 1208 problems while there are 208 problems still locked.

If you want to use this tool please follow this Usage Guide

If you have any question, please give me an issue.

If you are loving solving problems in leetcode, please contact me to enjoy it together!

(Notes: 🔒 means you need to buy a book from Leetcode to unlock the problem)

# Title Source Code Article Difficulty
1 two-sum Cpp Java 📝 Easy
2 add-two-numbers Cpp 📝 Medium
3 longest-substring-without-repeating-characters Cpp 📝 Medium
4 median-of-two-sorted-arrays Cpp 📝 Hard
5 longest-palindromic-substring Cpp 📝 Medium
6 zigzag-conversion Cpp 📝 Medium
7 reverse-integer Cpp Java 📝 Easy
8 string-to-integer-atoi Cpp Medium
9 palindrome-number Cpp 📝 Easy
10 regular-expression-matching Cpp 📝 Hard
11 container-with-most-water Cpp 📝 Medium
12 integer-to-roman Cpp Medium
13 roman-to-integer Cpp Easy
14 longest-common-prefix Cpp 📝 Easy
15 3sum Cpp Medium
16 3sum-closest Cpp Medium
17 letter-combinations-of-a-phone-number Cpp 📝 Medium
18 4sum Cpp Medium
19 remove-nth-node-from-end-of-list Cpp 📝 Medium
20 valid-parentheses Cpp 📝 Easy
21 merge-two-sorted-lists Cpp Java 📝 Easy
22 generate-parentheses Cpp 📝 Medium
23 merge-k-sorted-lists Cpp 📝 Hard
24 swap-nodes-in-pairs Cpp 📝 Medium
25 reverse-nodes-in-k-group Cpp Hard
26 remove-duplicates-from-sorted-array Cpp 📝 Easy
27 remove-element Java Cpp 📝 Easy
28 implement-strstr Cpp 📝 Easy
29 divide-two-integers Cpp Medium
30 substring-with-concatenation-of-all-words Hard
31 next-permutation Cpp 📝 Medium
32 longest-valid-parentheses Cpp 📝 Hard
33 search-in-rotated-sorted-array Cpp 📝 Medium
34 find-first-and-last-position-of-element-in-sorted-array Cpp 📝 Medium
35 search-insert-position Cpp Easy
36 valid-sudoku 📝 Medium
37 sudoku-solver 📝 Hard
38 count-and-say Cpp Easy
39 combination-sum Cpp Medium
40 combination-sum-ii Cpp Medium
41 first-missing-positive Cpp 📝 Hard
42 trapping-rain-water Cpp 📝 Hard
43 multiply-strings Cpp Medium
44 wildcard-matching 📝 Hard
45 jump-game-ii Cpp Hard
46 permutations Cpp 📝 Medium
47 permutations-ii Cpp Medium
48 rotate-image Cpp 📝 Medium
49 group-anagrams 📝 Medium
50 powx-n Cpp 📝 Medium
51 n-queens Cpp 📝 Hard
52 n-queens-ii 📝 Hard
53 maximum-subarray Java 📝 Easy
54 spiral-matrix Cpp 📝 Medium
55 jump-game Cpp 📝 Medium
56 merge-intervals Cpp 📝 Medium
57 insert-interval Cpp 📝 Hard
58 length-of-last-word Java Easy
59 spiral-matrix-ii Cpp Medium
60 permutation-sequence Cpp 📝 Medium
61 rotate-list Cpp 📝 Medium
62 unique-paths Cpp Medium
63 unique-paths-ii Cpp 📝 Medium
64 minimum-path-sum Cpp 📝 Medium
65 valid-number Cpp Hard
66 plus-one Cpp Easy
67 add-binary Cpp 📝 Easy
68 text-justification Cpp Hard
69 sqrtx Java 📝 Easy
70 climbing-stairs Cpp 📝 Easy
71 simplify-path Cpp Medium
72 edit-distance Cpp 📝 Hard
73 set-matrix-zeroes Cpp 📝 Medium
74 search-a-2d-matrix Cpp 📝 Medium
75 sort-colors Cpp 📝 Medium
76 minimum-window-substring 📝 Hard
77 combinations Cpp 📝 Medium
78 subsets Cpp 📝 Medium
79 word-search Cpp Medium
80 remove-duplicates-from-sorted-array-ii Cpp 📝 Medium
81 search-in-rotated-sorted-array-ii Cpp Medium
82 remove-duplicates-from-sorted-list-ii Cpp Medium
83 remove-duplicates-from-sorted-list Cpp 📝 Easy
84 largest-rectangle-in-histogram Cpp 📝 Hard
85 maximal-rectangle 📝 Hard
86 partition-list Cpp 📝 Medium
87 scramble-string Hard
88 merge-sorted-array Cpp 📝 Easy
89 gray-code Medium
90 subsets-ii Cpp Medium
91 decode-ways Medium
92 reverse-linked-list-ii Cpp 📝 Medium
93 restore-ip-addresses Cpp 📝 Medium
94 binary-tree-inorder-traversal Cpp 📝 Medium
95 unique-binary-search-trees-ii 📝 Medium
96 unique-binary-search-trees Cpp 📝 Medium
97 interleaving-string 📝 Hard
98 validate-binary-search-tree Cpp 📝 Medium
99 recover-binary-search-tree Cpp 📝 Hard
100 same-tree Cpp 📝 Easy
101 symmetric-tree Cpp 📝 Easy
102 binary-tree-level-order-traversal Cpp 📝 Medium
103 binary-tree-zigzag-level-order-traversal Cpp 📝 Medium
104 maximum-depth-of-binary-tree Cpp 📝 Easy
105 construct-binary-tree-from-preorder-and-inorder-traversal Cpp 📝 Medium
106 construct-binary-tree-from-inorder-and-postorder-traversal Cpp 📝 Medium
107 binary-tree-level-order-traversal-ii Cpp Easy
108 convert-sorted-array-to-binary-search-tree Cpp 📝 Easy
109 convert-sorted-list-to-binary-search-tree Cpp 📝 Medium
110 balanced-binary-tree Cpp 📝 Easy
111 minimum-depth-of-binary-tree Cpp 📝 Easy
112 path-sum Cpp 📝 Easy
113 path-sum-ii Cpp Medium
114 flatten-binary-tree-to-linked-list Cpp Medium
115 distinct-subsequences Hard
116 populating-next-right-pointers-in-each-node Cpp 📝 Medium
117 populating-next-right-pointers-in-each-node-ii Cpp 📝 Medium
118 pascals-triangle Cpp 📝 Easy
119 pascals-triangle-ii Cpp Easy
120 triangle Cpp Medium
121 best-time-to-buy-and-sell-stock Cpp 📝 Easy
122 best-time-to-buy-and-sell-stock-ii Cpp 📝 Easy
123 best-time-to-buy-and-sell-stock-iii Hard
124 binary-tree-maximum-path-sum Cpp 📝 Hard
125 valid-palindrome Cpp Easy
126 word-ladder-ii Hard
127 word-ladder 📝 Medium
128 longest-consecutive-sequence 📝 Hard
129 sum-root-to-leaf-numbers Cpp Medium
130 surrounded-regions Medium
131 palindrome-partitioning Medium
132 palindrome-partitioning-ii Hard
133 clone-graph 📝 Medium
134 gas-station Cpp 📝 Medium
135 candy 📝 Hard
136 single-number Cpp 📝 Easy
137 single-number-ii 📝 Medium
138 copy-list-with-random-pointer 📝 Medium
139 word-break 📝 Medium
140 word-break-ii 📝 Hard
141 linked-list-cycle Cpp 📝 Easy
142 linked-list-cycle-ii Cpp 📝 Medium
143 reorder-list Cpp Medium
144 binary-tree-preorder-traversal Cpp 📝 Medium
145 binary-tree-postorder-traversal Cpp 📝 Hard
146 lru-cache 📝 Medium
147 insertion-sort-list Medium
148 sort-list Cpp Medium
149 max-points-on-a-line 📝 Hard
150 evaluate-reverse-polish-notation Cpp Medium
151 reverse-words-in-a-string 📝 Medium
152 maximum-product-subarray Cpp Medium
153 find-minimum-in-rotated-sorted-array Cpp 📝 Medium
154 find-minimum-in-rotated-sorted-array-ii 📝 Hard
155 min-stack Cpp Easy
156 binary-tree-upside-down 🔒 Medium
157 read-n-characters-given-read4 🔒 Easy
158 read-n-characters-given-read4-ii-call-multiple-times 🔒 Hard
159 longest-substring-with-at-most-two-distinct-characters 🔒 📝 Medium
160 intersection-of-two-linked-lists Java 📝 Easy
161 one-edit-distance 🔒 📝 Medium
162 find-peak-element Cpp 📝 Medium
163 missing-ranges 🔒 Medium
164 maximum-gap 📝 Hard
165 compare-version-numbers Medium
166 fraction-to-recurring-decimal Cpp 📝 Medium
167 two-sum-ii-input-array-is-sorted Cpp 📝 Easy
168 excel-sheet-column-title Cpp Easy
169 majority-element Cpp 📝 Easy
170 two-sum-iii-data-structure-design 🔒 📝 Easy
171 excel-sheet-column-number Cpp Easy
172 factorial-trailing-zeroes Cpp Easy
173 binary-search-tree-iterator Cpp 📝 Medium
174 dungeon-game Hard
179 largest-number Cpp 📝 Medium
186 reverse-words-in-a-string-ii 🔒 Medium
187 repeated-dna-sequences 📝 Medium
188 best-time-to-buy-and-sell-stock-iv Hard
189 rotate-array Cpp 📝 Easy
190 reverse-bits Cpp Easy
191 number-of-1-bits Cpp 📝 Easy
198 house-robber Cpp 📝 Easy
199 binary-tree-right-side-view Cpp 📝 Medium
200 number-of-islands Cpp 📝 Medium
201 bitwise-and-of-numbers-range Medium
202 happy-number Cpp 📝 Easy
203 remove-linked-list-elements Cpp 📝 Easy
204 count-primes Cpp Easy
205 isomorphic-strings Cpp Easy
206 reverse-linked-list Cpp 📝 Easy
207 course-schedule Cpp Medium
208 implement-trie-prefix-tree Cpp 📝 Medium
209 minimum-size-subarray-sum Cpp 📝 Medium
210 course-schedule-ii 📝 Medium
211 add-and-search-word-data-structure-design Cpp Medium
212 word-search-ii 📝 Hard
213 house-robber-ii Cpp Medium
214 shortest-palindrome 📝 Hard
215 kth-largest-element-in-an-array Cpp 📝 Medium
216 combination-sum-iii Cpp Medium
217 contains-duplicate Cpp 📝 Easy
218 the-skyline-problem 📝 Hard
219 contains-duplicate-ii Cpp 📝 Easy
220 contains-duplicate-iii Cpp 📝 Medium
221 maximal-square 📝 Medium
222 count-complete-tree-nodes Cpp 📝 Medium
223 rectangle-area Medium
224 basic-calculator Cpp 📝 Hard
225 implement-stack-using-queues Cpp Java 📝 Easy
226 invert-binary-tree Cpp 📝 Easy
227 basic-calculator-ii Medium
228 summary-ranges Cpp 📝 Medium
229 majority-element-ii Cpp Medium
230 kth-smallest-element-in-a-bst Cpp 📝 Medium
231 power-of-two Cpp 📝 Easy
232 implement-queue-using-stacks Cpp 📝 Easy
233 number-of-digit-one 📝 Hard
234 palindrome-linked-list Cpp 📝 Easy
235 lowest-common-ancestor-of-a-binary-search-tree Cpp 📝 Easy
236 lowest-common-ancestor-of-a-binary-tree 📝 Medium
237 delete-node-in-a-linked-list Cpp 📝 Easy
238 product-of-array-except-self Cpp 📝 Medium
239 sliding-window-maximum 📝 Hard
240 search-a-2d-matrix-ii Cpp 📝 Medium
241 different-ways-to-add-parentheses Medium
242 valid-anagram Cpp 📝 Easy
243 shortest-word-distance 🔒 📝 Easy
244 shortest-word-distance-ii 🔒 📝 Medium
245 shortest-word-distance-iii 🔒 Medium
246 strobogrammatic-number 🔒 Easy
247 strobogrammatic-number-ii 🔒 Medium
248 strobogrammatic-number-iii 🔒 Hard
249 group-shifted-strings 🔒 Medium
250 count-univalue-subtrees 🔒 📝 Medium
251 flatten-2d-vector 🔒 Medium
252 meeting-rooms 🔒 📝 Easy
253 meeting-rooms-ii 🔒 📝 Medium
254 factor-combinations 🔒 Medium
255 verify-preorder-sequence-in-binary-search-tree 🔒 Medium
256 paint-house 🔒 Easy
257 binary-tree-paths Cpp 📝 Easy
258 add-digits Cpp Easy
259 3sum-smaller 🔒 📝 Medium
260 single-number-iii Cpp 📝 Medium
261 graph-valid-tree 🔒 Medium
263 ugly-number Cpp Easy
264 ugly-number-ii Cpp 📝 Medium
265 paint-house-ii 🔒 Hard
266 palindrome-permutation 🔒 📝 Easy
267 palindrome-permutation-ii 🔒 📝 Medium
268 missing-number Cpp 📝 Easy
269 alien-dictionary 🔒 Hard
270 closest-binary-search-tree-value 🔒 📝 Easy
271 encode-and-decode-strings 🔒 📝 Medium
272 closest-binary-search-tree-value-ii 🔒 Hard
273 integer-to-english-words 📝 Hard
274 h-index Cpp 📝 Medium
275 h-index-ii 📝 Medium
276 paint-fence 🔒 Easy
277 find-the-celebrity 🔒 Medium
278 first-bad-version Cpp 📝 Easy
279 perfect-squares Cpp 📝 Medium
280 wiggle-sort 🔒 📝 Medium
281 zigzag-iterator 🔒 Medium
282 expression-add-operators 📝 Hard
283 move-zeroes Cpp 📝 Easy
284 peeking-iterator Medium
285 inorder-successor-in-bst 🔒 📝 Medium
286 walls-and-gates 🔒 📝 Medium
287 find-the-duplicate-number Cpp 📝 Medium
288 unique-word-abbreviation 🔒 📝 Medium
289 game-of-life 📝 Medium
290 word-pattern Cpp Easy
291 word-pattern-ii 🔒 Hard
292 nim-game Cpp 📝 Easy
293 flip-game 🔒 Easy
294 flip-game-ii 🔒 Medium
295 find-median-from-data-stream 📝 Hard
296 best-meeting-point 🔒 📝 Hard
297 serialize-and-deserialize-binary-tree Cpp 📝 Hard
298 binary-tree-longest-consecutive-sequence 🔒 📝 Medium
299 bulls-and-cows Cpp Easy
300 longest-increasing-subsequence Cpp 📝 Medium
301 remove-invalid-parentheses 📝 Hard
302 smallest-rectangle-enclosing-black-pixels 🔒 📝 Hard
303 range-sum-query-immutable Java 📝 Easy
304 range-sum-query-2d-immutable 📝 Medium
305 number-of-islands-ii 🔒 📝 Hard
306 additive-number Medium
307 range-sum-query-mutable 📝 Medium
308 range-sum-query-2d-mutable 🔒 Hard
309 best-time-to-buy-and-sell-stock-with-cooldown Cpp Medium
310 minimum-height-trees Medium
311 sparse-matrix-multiplication 🔒 Medium
312 burst-balloons 📝 Hard
313 super-ugly-number Medium
314 binary-tree-vertical-order-traversal 🔒 Medium
315 count-of-smaller-numbers-after-self Hard
316 remove-duplicate-letters 📝 Hard
317 shortest-distance-from-all-buildings 🔒 Hard
318 maximum-product-of-word-lengths 📝 Medium
319 bulb-switcher Cpp Medium
320 generalized-abbreviation 🔒 📝 Medium
321 create-maximum-number Hard
322 coin-change Cpp 📝 Medium
323 number-of-connected-components-in-an-undirected-graph 🔒 Medium
324 wiggle-sort-ii Medium
325 maximum-size-subarray-sum-equals-k 🔒 Medium
326 power-of-three Cpp 📝 Easy
327 count-of-range-sum Hard
328 odd-even-linked-list Cpp 📝 Medium
329 longest-increasing-path-in-a-matrix 📝 Hard
330 patching-array 📝 Hard
331 verify-preorder-serialization-of-a-binary-tree 📝 Medium
332 reconstruct-itinerary Medium
333 largest-bst-subtree 🔒 Medium
334 increasing-triplet-subsequence Cpp Medium
335 self-crossing Hard
336 palindrome-pairs 📝 Hard
337 house-robber-iii Cpp Medium
338 counting-bits Cpp 📝 Medium
339 nested-list-weight-sum 🔒 📝 Easy
340 longest-substring-with-at-most-k-distinct-characters 🔒 📝 Hard
341 flatten-nested-list-iterator Medium
342 power-of-four Java 📝 Easy
343 integer-break Cpp Medium
344 reverse-string Cpp 📝 Easy
345 reverse-vowels-of-a-string Java Easy
346 moving-average-from-data-stream 🔒 📝 Easy
347 top-k-frequent-elements Cpp 📝 Medium
348 design-tic-tac-toe 🔒 Medium
349 intersection-of-two-arrays Cpp 📝 Easy
350 intersection-of-two-arrays-ii Cpp 📝 Easy
351 android-unlock-patterns 🔒 📝 Medium
352 data-stream-as-disjoint-intervals Hard
353 design-snake-game 🔒 Medium
354 russian-doll-envelopes 📝 Hard
355 design-twitter Medium
356 line-reflection 🔒 Medium
357 count-numbers-with-unique-digits Medium
358 rearrange-string-k-distance-apart 🔒 Hard
359 logger-rate-limiter 🔒 📝 Easy
360 sort-transformed-array 🔒 Medium
361 bomb-enemy 🔒 Medium
362 design-hit-counter 🔒 Medium
363 max-sum-of-rectangle-no-larger-than-k Hard
364 nested-list-weight-sum-ii 🔒 Medium
365 water-and-jug-problem Medium
366 find-leaves-of-binary-tree 🔒 Medium
367 valid-perfect-square Java 📝 Easy
368 largest-divisible-subset 📝 Medium
369 plus-one-linked-list 🔒 📝 Medium
370 range-addition 🔒 📝 Medium
371 sum-of-two-integers Cpp Easy
372 super-pow Medium
373 find-k-pairs-with-smallest-sums Medium
374 guess-number-higher-or-lower Cpp 📝 Easy
375 guess-number-higher-or-lower-ii 📝 Medium
376 wiggle-subsequence 📝 Medium
377 combination-sum-iv Medium
378 kth-smallest-element-in-a-sorted-matrix Cpp Medium
379 design-phone-directory 🔒 Medium
380 insert-delete-getrandom-o1 Cpp 📝 Medium
381 insert-delete-getrandom-o1-duplicates-allowed 📝 Hard
382 linked-list-random-node Cpp Medium
383 ransom-note Cpp Easy
384 shuffle-an-array Cpp 📝 Medium
385 mini-parser Medium
386 lexicographical-numbers Cpp Medium
387 first-unique-character-in-a-string Cpp 📝 Easy
388 longest-absolute-file-path Cpp Medium
389 find-the-difference Cpp Easy
390 elimination-game Cpp Medium
391 perfect-rectangle Hard
392 is-subsequence Cpp Easy
393 utf-8-validation 📝 Medium
394 decode-string Medium
395 longest-substring-with-at-least-k-repeating-characters Medium
396 rotate-function Cpp Medium
397 integer-replacement Medium
398 random-pick-index Cpp Medium
399 evaluate-division Medium
400 nth-digit Java Medium
401 binary-watch Easy
402 remove-k-digits 📝 Medium
403 frog-jump 📝 Hard
404 sum-of-left-leaves Cpp Easy
405 convert-a-number-to-hexadecimal Cpp Easy
406 queue-reconstruction-by-height Cpp 📝 Medium
407 trapping-rain-water-ii Hard
408 valid-word-abbreviation 🔒 Easy
409 longest-palindrome Cpp 📝 Easy
410 split-array-largest-sum 📝 Hard
411 minimum-unique-word-abbreviation 🔒 Hard
412 fizz-buzz Cpp 📝 Easy
413 arithmetic-slices Cpp 📝 Medium
414 third-maximum-number Java Easy
415 add-strings Cpp Easy
416 partition-equal-subset-sum Cpp Medium
417 pacific-atlantic-water-flow Medium
418 sentence-screen-fitting 🔒 Medium
419 battleships-in-a-board Cpp Medium
420 strong-password-checker Hard
421 maximum-xor-of-two-numbers-in-an-array Cpp 📝 Medium
422 valid-word-square 🔒 Easy
423 reconstruct-original-digits-from-english 📝 Medium
424 longest-repeating-character-replacement Medium
425 word-squares 🔒 📝 Hard
432 all-oone-data-structure Hard
433 minimum-genetic-mutation Medium
434 number-of-segments-in-a-string Cpp 📝 Easy
435 non-overlapping-intervals Cpp 📝 Medium
436 find-right-interval 📝 Medium
437 path-sum-iii Cpp Easy
438 find-all-anagrams-in-a-string Cpp Medium
439 ternary-expression-parser 🔒 Medium
440 k-th-smallest-in-lexicographical-order Hard
441 arranging-coins Cpp Easy
442 find-all-duplicates-in-an-array Cpp Medium
443 string-compression Cpp 📝 Easy
444 sequence-reconstruction 🔒 Medium
445 add-two-numbers-ii Cpp Medium
446 arithmetic-slices-ii-subsequence 📝 Hard
447 number-of-boomerangs Cpp Easy
448 find-all-numbers-disappeared-in-an-array Cpp 📝 Easy
449 serialize-and-deserialize-bst Cpp 📝 Medium
450 delete-node-in-a-bst Cpp 📝 Medium
451 sort-characters-by-frequency Cpp Medium
452 minimum-number-of-arrows-to-burst-balloons 📝 Medium
453 minimum-moves-to-equal-array-elements Cpp 📝 Easy
454 4sum-ii Cpp Medium
455 assign-cookies Cpp Easy
456 132-pattern 📝 Medium
457 circular-array-loop Medium
458 poor-pigs 📝 Hard
459 repeated-substring-pattern Easy
460 lfu-cache Hard
461 hamming-distance Cpp 📝 Easy
462 minimum-moves-to-equal-array-elements-ii Cpp 📝 Medium
463 island-perimeter Cpp Easy
464 can-i-win Medium
465 optimal-account-balancing 🔒 Hard
466 count-the-repetitions 📝 Hard
467 unique-substrings-in-wraparound-string Medium
468 validate-ip-address Medium
469 convex-polygon 🔒 Medium
471 encode-string-with-shortest-length 🔒 Hard
472 concatenated-words Hard
473 matchsticks-to-square 📝 Medium
474 ones-and-zeroes 📝 Medium
475 heaters Cpp Java Easy
476 number-complement Cpp Easy
477 total-hamming-distance Cpp 📝 Medium
479 largest-palindrome-product Hard
480 sliding-window-median 📝 Hard
481 magical-string Medium
482 license-key-formatting Easy
483 smallest-good-base Hard
484 find-permutation 🔒 📝 Medium
485 max-consecutive-ones Cpp 📝 Easy
486 predict-the-winner 📝 Medium
487 max-consecutive-ones-ii 🔒 Medium
488 zuma-game Hard
490 the-maze 🔒 📝 Medium
491 increasing-subsequences Medium
492 construct-the-rectangle Cpp Easy
493 reverse-pairs 📝 Hard
494 target-sum Cpp 📝 Medium
495 teemo-attacking 📝 Medium
496 next-greater-element-i Cpp 📝 Easy
498 diagonal-traverse 📝 Medium
499 the-maze-iii 🔒 Hard
500 keyboard-row Cpp Easy
501 find-mode-in-binary-search-tree Cpp Easy
502 ipo 📝 Hard
503 next-greater-element-ii Cpp 📝 Medium
504 base-7 Cpp Easy
505 the-maze-ii 🔒 📝 Medium
506 relative-ranks Cpp Easy
507 perfect-number Cpp 📝 Easy
508 most-frequent-subtree-sum Medium
509 inorder-successor-in-bst-ii 🔒 📝 Medium
511 all-paths-from-source-lead-to-destination 🔒 Medium
513 find-bottom-left-tree-value Cpp Medium
514 freedom-trail Hard
515 find-largest-value-in-each-tree-row Medium
516 longest-palindromic-subsequence Medium
517 super-washing-machines 📝 Hard
518 coin-change-2 📝 Medium
520 detect-capital Cpp Easy
521 longest-uncommon-subsequence-i 📝 Easy
522 longest-uncommon-subsequence-ii 📝 Medium
523 continuous-subarray-sum 📝 Medium
524 longest-word-in-dictionary-through-deleting 📝 Medium
525 contiguous-array 📝 Medium
526 beautiful-arrangement 📝 Medium
527 word-abbreviation 🔒 📝 Hard
529 minesweeper Medium
530 minimum-absolute-difference-in-bst Cpp Easy
531 lonely-pixel-i 🔒 Medium
532 k-diff-pairs-in-an-array Easy
533 lonely-pixel-ii 🔒 Medium
535 encode-and-decode-tinyurl 📝 Medium
536 construct-binary-tree-from-string 🔒 Medium
537 complex-number-multiplication Cpp 📝 Medium
538 convert-bst-to-greater-tree Cpp 📝 Easy
539 minimum-time-difference Cpp Medium
540 single-element-in-a-sorted-array Cpp 📝 Medium
541 reverse-string-ii Cpp 📝 Easy
542 01-matrix 📝 Medium
543 diameter-of-binary-tree Cpp 📝 Easy
544 output-contest-matches 🔒 📝 Medium
545 boundary-of-binary-tree 🔒 📝 Medium
546 remove-boxes 📝 Hard
547 friend-circles Cpp 📝 Medium
548 split-array-with-equal-sum 🔒 📝 Medium
549 binary-tree-longest-consecutive-sequence-ii 🔒 📝 Medium
551 student-attendance-record-i Cpp 📝 Easy
552 student-attendance-record-ii 📝 Hard
553 optimal-division 📝 Medium
554 brick-wall 📝 Medium
555 split-concatenated-strings 🔒 📝 Medium
556 next-greater-element-iii 📝 Medium
557 reverse-words-in-a-string-iii Cpp 📝 Easy
560 subarray-sum-equals-k 📝 Medium
561 array-partition-i Cpp 📝 Easy
562 longest-line-of-consecutive-one-in-matrix 🔒 📝 Medium
563 binary-tree-tilt Cpp 📝 Easy
564 find-the-closest-palindrome 📝 Hard
565 array-nesting 📝 Medium
566 reshape-the-matrix Cpp 📝 Easy
567 permutation-in-string 📝 Medium
568 maximum-vacation-days 🔒 📝 Hard
572 subtree-of-another-tree Cpp 📝 Easy
573 squirrel-simulation 🔒 📝 Medium
575 distribute-candies Cpp 📝 Easy
576 out-of-boundary-paths 📝 Medium
581 shortest-unsorted-continuous-subarray 📝 Easy
582 kill-process 🔒 📝 Medium
583 delete-operation-for-two-strings 📝 Medium
587 erect-the-fence 📝 Hard
588 design-in-memory-file-system 🔒 📝 Hard
591 tag-validator 📝 Hard
592 fraction-addition-and-subtraction 📝 Medium
593 valid-square 📝 Medium
594 longest-harmonious-subsequence 📝 Easy
598 range-addition-ii Cpp 📝 Easy
599 minimum-index-sum-of-two-lists Cpp 📝 Easy
600 non-negative-integers-without-consecutive-ones 📝 Hard
604 design-compressed-string-iterator 🔒 📝 Easy
605 can-place-flowers Cpp 📝 Easy
606 construct-string-from-binary-tree Cpp 📝 Easy
609 find-duplicate-file-in-system 📝 Medium
611 valid-triangle-number 📝 Medium
616 add-bold-tag-in-string 🔒 📝 Medium
617 merge-two-binary-trees Cpp 📝 Easy
621 task-scheduler 📝 Medium
623 add-one-row-to-tree Cpp 📝 Medium
624 maximum-distance-in-arrays 🔒 📝 Easy
625 minimum-factorization 🔒 📝 Medium
628 maximum-product-of-three-numbers Cpp 📝 Easy
629 k-inverse-pairs-array 📝 Hard
630 course-schedule-iii 📝 Hard
631 design-excel-sum-formula 🔒 📝 Hard
632 smallest-range-covering-elements-from-k-lists 📝 Hard
633 sum-of-square-numbers 📝 Easy
634 find-the-derangement-of-an-array 🔒 📝 Medium
635 design-log-storage-system 🔒 📝 Medium
636 exclusive-time-of-functions 📝 Medium
637 average-of-levels-in-binary-tree Cpp 📝 Easy
638 shopping-offers Cpp 📝 Medium
639 decode-ways-ii 📝 Hard
640 solve-the-equation 📝 Medium
642 design-search-autocomplete-system 🔒 📝 Hard
643 maximum-average-subarray-i 📝 Easy
644 maximum-average-subarray-ii 🔒 📝 Hard
645 set-mismatch 📝 Easy
646 maximum-length-of-pair-chain Cpp 📝 Medium
647 palindromic-substrings Cpp 📝 Medium
648 replace-words Cpp 📝 Medium
649 dota2-senate 📝 Medium
650 2-keys-keyboard 📝 Medium
651 4-keys-keyboard 🔒 📝 Medium
652 find-duplicate-subtrees Cpp 📝 Medium
653 two-sum-iv-input-is-a-bst Cpp 📝 Easy
654 maximum-binary-tree Cpp 📝 Medium
655 print-binary-tree 📝 Medium
656 coin-path 🔒 📝 Hard
657 robot-return-to-origin Cpp 📝 Easy
658 find-k-closest-elements 📝 Medium
659 split-array-into-consecutive-subsequences 📝 Medium
660 remove-9 🔒 📝 Hard
661 image-smoother 📝 Easy
662 maximum-width-of-binary-tree 📝 Medium
663 equal-tree-partition 🔒 📝 Medium
664 strange-printer 📝 Hard
665 non-decreasing-array 📝 Easy
666 path-sum-iv 🔒 📝 Medium
667 beautiful-arrangement-ii 📝 Medium
668 kth-smallest-number-in-multiplication-table 📝 Hard
669 trim-a-binary-search-tree 📝 Easy
670 maximum-swap 📝 Medium
671 second-minimum-node-in-a-binary-tree Cpp 📝 Easy
672 bulb-switcher-ii Cpp 📝 Medium
673 number-of-longest-increasing-subsequence 📝 Medium
674 longest-continuous-increasing-subsequence Cpp 📝 Easy
675 cut-off-trees-for-golf-event 📝 Hard
676 implement-magic-dictionary Cpp 📝 Medium
677 map-sum-pairs 📝 Medium
678 valid-parenthesis-string 📝 Medium
679 24-game 📝 Hard
680 valid-palindrome-ii 📝 Easy
681 next-closest-time 🔒 📝 Medium
682 baseball-game Cpp 📝 Easy
683 k-empty-slots 🔒 📝 Hard
684 redundant-connection 📝 Medium
685 redundant-connection-ii 📝 Hard
686 repeated-string-match 📝 Easy
687 longest-univalue-path Cpp 📝 Easy
688 knight-probability-in-chessboard 📝 Medium
689 maximum-sum-of-3-non-overlapping-subarrays 📝 Hard
690 employee-importance 📝 Easy
691 stickers-to-spell-word 📝 Hard
692 top-k-frequent-words Cpp 📝 Medium
693 binary-number-with-alternating-bits Cpp 📝 Easy
694 number-of-distinct-islands 🔒 📝 Medium
695 max-area-of-island Cpp 📝 Medium
696 count-binary-substrings Cpp 📝 Easy
697 degree-of-an-array Cpp 📝 Easy
698 partition-to-k-equal-sum-subsets 📝 Medium
699 falling-squares 📝 Hard
711 number-of-distinct-islands-ii 🔒 📝 Hard
712 minimum-ascii-delete-sum-for-two-strings 📝 Medium
713 subarray-product-less-than-k 📝 Medium
714 best-time-to-buy-and-sell-stock-with-transaction-fee 📝 Medium
715 range-module 📝 Hard
716 max-stack 🔒 📝 Easy
717 1-bit-and-2-bit-characters 📝 Easy
718 maximum-length-of-repeated-subarray 📝 Medium
719 find-k-th-smallest-pair-distance 📝 Hard
720 longest-word-in-dictionary 📝 Easy
721 accounts-merge 📝 Medium
722 remove-comments 📝 Medium
723 candy-crush 🔒 📝 Medium
724 find-pivot-index 📝 Easy
725 split-linked-list-in-parts Cpp 📝 Medium
726 number-of-atoms 📝 Hard
727 minimum-window-subsequence 🔒 📝 Hard
728 self-dividing-numbers Cpp 📝 Easy
729 my-calendar-i 📝 Medium
730 count-different-palindromic-subsequences 📝 Hard
731 my-calendar-ii 📝 Medium
732 my-calendar-iii 📝 Hard
733 flood-fill 📝 Easy
734 sentence-similarity 🔒 📝 Easy
735 asteroid-collision 📝 Medium
736 parse-lisp-expression 📝 Hard
737 sentence-similarity-ii 🔒 📝 Medium
738 monotone-increasing-digits 📝 Medium
739 daily-temperatures Cpp 📝 Medium
740 delete-and-earn 📝 Medium
741 cherry-pickup 📝 Hard
742 to-lower-case Easy
743 closest-leaf-in-a-binary-tree 🔒 📝 Medium
744 network-delay-time Cpp 📝 Medium
745 find-smallest-letter-greater-than-target Cpp 📝 Easy
746 prefix-and-suffix-search 📝 Hard
747 min-cost-climbing-stairs 📝 Easy
748 largest-number-at-least-twice-of-others Cpp 📝 Easy
749 shortest-completing-word 📝 Easy
750 contain-virus 📝 Hard
751 number-of-corner-rectangles 🔒 📝 Medium
752 ip-to-cidr 🔒 📝 Easy
753 open-the-lock 📝 Medium
754 cracking-the-safe 📝 Hard
755 reach-a-number 📝 Medium
756 pour-water 🔒 📝 Medium
757 pyramid-transition-matrix 📝 Medium
758 convert-binary-search-tree-to-sorted-doubly-linked-list 🔒 📝 Medium
759 set-intersection-size-at-least-two 📝 Hard
760 bold-words-in-string 🔒 📝 Easy
761 employee-free-time 🔒 📝 Hard
762 find-anagram-mappings 🔒 📝 Easy
763 special-binary-string 📝 Hard
764 n-ary-tree-level-order-traversal Cpp 📝 Medium
765 serialize-and-deserialize-n-ary-tree 🔒 Hard
766 flatten-a-multilevel-doubly-linked-list 📝 Medium
767 prime-number-of-set-bits-in-binary-representation Cpp 📝 Easy
768 partition-labels Cpp 📝 Medium
769 largest-plus-sign 📝 Medium
770 couples-holding-hands 📝 Hard
771 encode-n-ary-tree-to-binary-tree 🔒 📝 Hard
772 construct-quad-tree Medium
773 quad-tree-intersection Easy
774 maximum-depth-of-n-ary-tree 📝 Easy
775 n-ary-tree-preorder-traversal Cpp 📝 Easy
776 n-ary-tree-postorder-traversal Cpp 📝 Easy
777 toeplitz-matrix Cpp 📝 Easy
778 reorganize-string 📝 Medium
779 max-chunks-to-make-sorted-ii 📝 Hard
780 max-chunks-to-make-sorted 📝 Medium
781 basic-calculator-iv 📝 Hard
782 jewels-and-stones Cpp 📝 Easy
783 search-in-a-binary-search-tree Cpp 📝 Easy
784 insert-into-a-binary-search-tree Cpp 📝 Medium
785 basic-calculator-iii 🔒 Hard
786 search-in-a-sorted-array-of-unknown-size 🔒 📝 Medium
787 sliding-puzzle 📝 Hard
788 minimize-max-distance-to-gas-station 🔒 📝 Hard
789 kth-largest-element-in-a-stream Easy
790 global-and-local-inversions 📝 Medium
791 split-bst 🔒 📝 Medium
792 binary-search Cpp 📝 Easy
793 swap-adjacent-in-lr-string 📝 Medium
794 swim-in-rising-water 📝 Hard
795 k-th-symbol-in-grammar 📝 Medium
796 reaching-points 📝 Hard
797 rabbits-in-forest Cpp 📝 Medium
798 transform-to-chessboard 📝 Hard
799 minimum-distance-between-bst-nodes Cpp 📝 Easy
800 letter-case-permutation Cpp 📝 Easy
801 is-graph-bipartite 📝 Medium
802 k-th-smallest-prime-fraction 📝 Hard
803 cheapest-flights-within-k-stops 📝 Medium
804 rotated-digits 📝 Easy
805 escape-the-ghosts Cpp 📝 Medium
806 domino-and-tromino-tiling 📝 Medium
807 custom-sort-string Cpp 📝 Medium
808 number-of-matching-subsequences Cpp 📝 Medium
809 preimage-size-of-factorial-zeroes-function 📝 Hard
810 valid-tic-tac-toe-state 📝 Medium
811 number-of-subarrays-with-bounded-maximum 📝 Medium
812 rotate-string 📝 Easy
813 all-paths-from-source-to-target Cpp 📝 Medium
814 smallest-rotation-with-highest-score 📝 Hard
815 champagne-tower 📝 Medium
816 design-hashset Easy
817 design-hashmap 📝 Easy
818 similar-rgb-color 🔒 📝 Easy
819 minimum-swaps-to-make-sequences-increasing 📝 Medium
820 find-eventual-safe-states 📝 Medium
821 bricks-falling-when-hit 📝 Hard
822 unique-morse-code-words 📝 Easy
823 split-array-with-same-average 📝 Hard
824 number-of-lines-to-write-string 📝 Easy
825 max-increase-to-keep-city-skyline Cpp 📝 Medium
826 soup-servings 📝 Medium
827 expressive-words 📝 Medium
828 chalkboard-xor-game 📝 Hard
829 subdomain-visit-count 📝 Easy
830 largest-triangle-area 📝 Easy
831 largest-sum-of-averages 📝 Medium
832 binary-tree-pruning Cpp 📝 Medium
833 bus-routes 📝 Hard
834 ambiguous-coordinates 📝 Medium
835 linked-list-components 📝 Medium
836 race-car 📝 Hard
837 most-common-word 📝 Easy
838 design-linked-list Cpp 📝 Medium
839 short-encoding-of-words 📝 Medium
841 shortest-distance-to-a-character 📝 Easy
842 card-flipping-game 📝 Medium
843 binary-trees-with-factors 📝 Medium
850 insert-into-a-sorted-circular-linked-list 🔒 📝 Medium
851 goat-latin 📝 Easy
852 friends-of-appropriate-ages 📝 Medium
853 most-profit-assigning-work 📝 Medium
854 making-a-large-island 📝 Hard
855 unique-letter-string 📝 Hard
856 consecutive-numbers-sum 📝 Hard
857 positions-of-large-groups 📝 Easy
858 masking-personal-information 📝 Medium
859 design-circular-deque Cpp Medium
860 design-circular-queue 📝 Medium
861 flipping-an-image Cpp 📝 Easy
862 find-and-replace-in-string 📝 Medium
863 sum-of-distances-in-tree 📝 Hard
864 image-overlap 📝 Medium
865 robot-room-cleaner 🔒 📝 Hard
866 rectangle-overlap 📝 Easy
867 new-21-game 📝 Medium
868 push-dominoes 📝 Medium
869 similar-string-groups 📝 Hard
870 magic-squares-in-grid 📝 Easy
871 keys-and-rooms Cpp 📝 Medium
872 split-array-into-fibonacci-sequence 📝 Medium
873 guess-the-word 📝 Hard
874 backspace-string-compare 📝 Easy
875 longest-mountain-in-array 📝 Medium
876 hand-of-straights 📝 Medium
877 shortest-path-visiting-all-nodes 📝 Hard
878 shifting-letters 📝 Medium
879 maximize-distance-to-closest-person 📝 Easy
880 rectangle-area-ii 📝 Hard
881 loud-and-rich 📝 Medium
882 peak-index-in-a-mountain-array Cpp 📝 Easy
883 car-fleet 📝 Medium
884 k-similar-strings 📝 Hard
885 exam-room 📝 Medium
886 score-of-parentheses 📝 Medium
887 minimum-cost-to-hire-k-workers 📝 Hard
888 mirror-reflection Cpp 📝 Medium
889 buddy-strings 📝 Easy
890 lemonade-change 📝 Easy
891 score-after-flipping-matrix Cpp 📝 Medium
892 shortest-subarray-with-sum-at-least-k 📝 Hard
893 all-nodes-distance-k-in-binary-tree Cpp 📝 Medium
894 random-pick-with-blacklist 📝 Hard
895 shortest-path-to-get-all-keys 📝 Hard
896 smallest-subtree-with-all-the-deepest-nodes 📝 Medium
897 prime-palindrome 📝 Medium
898 transpose-matrix Cpp 📝 Easy
899 binary-gap 📝 Easy
900 reordered-power-of-2 Cpp 📝 Medium
901 advantage-shuffle 📝 Medium
902 minimum-number-of-refueling-stops 📝 Hard
903 implement-rand10-using-rand7 📝 Medium
904 leaf-similar-trees Cpp 📝 Easy
905 length-of-longest-fibonacci-subsequence 📝 Medium
906 walking-robot-simulation 📝 Easy
907 koko-eating-bananas 📝 Medium
908 middle-of-the-linked-list 📝 Easy
909 stone-game Cpp 📝 Medium
910 nth-magical-number 📝 Hard
911 profitable-schemes 📝 Hard
912 random-pick-with-weight Cpp 📝 Medium
913 random-flip-matrix 📝 Medium
914 random-point-in-non-overlapping-rectangles 📝 Medium
915 generate-random-point-in-a-circle 📝 Medium
916 decoded-string-at-index 📝 Medium
917 boats-to-save-people 📝 Medium
918 reachable-nodes-in-subdivided-graph 📝 Hard
919 projection-area-of-3d-shapes 📝 Easy
920 uncommon-words-from-two-sentences 📝 Easy
921 spiral-matrix-iii Cpp 📝 Medium
922 possible-bipartition 📝 Medium
923 super-egg-drop 📝 Hard
924 fair-candy-swap 📝 Easy
925 construct-binary-tree-from-preorder-and-postorder-traversal 📝 Medium
926 find-and-replace-pattern Cpp 📝 Medium
927 sum-of-subsequence-widths 📝 Hard
928 surface-area-of-3d-shapes 📝 Easy
929 groups-of-special-equivalent-strings 📝 Easy
930 all-possible-full-binary-trees Cpp 📝 Medium
931 maximum-frequency-stack 📝 Hard
932 monotonic-array 📝 Easy
933 increasing-order-search-tree 📝 Easy
934 bitwise-ors-of-subarrays 📝 Medium
935 orderly-queue 📝 Hard
936 rle-iterator Cpp 📝 Medium
937 online-stock-span 📝 Medium
938 numbers-at-most-n-given-digit-set 📝 Hard
939 valid-permutations-for-di-sequence 📝 Hard
940 fruit-into-baskets 📝 Medium
941 sort-array-by-parity Cpp 📝 Easy
942 super-palindromes 📝 Hard
943 sum-of-subarray-minimums 📝 Medium
944 smallest-range-i Cpp 📝 Easy
945 snakes-and-ladders 📝 Medium
946 smallest-range-ii 📝 Medium
947 online-election 📝 Medium
948 sort-an-array Medium
949 cat-and-mouse 📝 Hard
950 x-of-a-kind-in-a-deck-of-cards 📝 Easy
951 partition-array-into-disjoint-intervals Cpp 📝 Medium
952 word-subsets 📝 Medium
953 reverse-only-letters 📝 Easy
954 maximum-sum-circular-subarray 📝 Medium
955 complete-binary-tree-inserter Cpp 📝 Medium
956 number-of-music-playlists 📝 Hard
957 minimum-add-to-make-parentheses-valid Cpp 📝 Medium
958 sort-array-by-parity-ii Cpp 📝 Easy
959 3sum-with-multiplicity 📝 Medium
960 minimize-malware-spread 📝 Hard
961 long-pressed-name 📝 Easy
962 flip-string-to-monotone-increasing 📝 Medium
963 three-equal-parts 📝 Hard
964 minimize-malware-spread-ii 📝 Hard
965 unique-email-addresses 📝 Easy
966 binary-subarrays-with-sum 📝 Medium
967 minimum-falling-path-sum 📝 Medium
968 beautiful-array 📝 Medium
969 number-of-recent-calls 📝 Easy
971 shortest-bridge 📝 Medium
972 knight-dialer 📝 Medium
973 stamping-the-sequence 📝 Hard
974 reorder-data-in-log-files 📝 Easy
975 range-sum-of-bst Cpp 📝 Easy
976 minimum-area-rectangle 📝 Medium
977 distinct-subsequences-ii 📝 Hard
978 valid-mountain-array Cpp 📝 Easy
979 di-string-match 📝 Easy
980 find-the-shortest-superstring 📝 Hard
981 delete-columns-to-make-sorted 📝 Easy
982 minimum-increment-to-make-array-unique 📝 Medium
983 validate-stack-sequences Cpp 📝 Medium
984 most-stones-removed-with-same-row-or-column 📝 Medium
985 bag-of-tokens 📝 Medium
986 largest-time-for-given-digits 📝 Easy
987 reveal-cards-in-increasing-order Cpp 📝 Medium
988 flip-equivalent-binary-trees Cpp 📝 Medium
989 largest-component-size-by-common-factor 📝 Hard
990 verifying-an-alien-dictionary 📝 Easy
991 array-of-doubled-pairs 📝 Medium
992 delete-columns-to-make-sorted-ii 📝 Medium
993 tallest-billboard 📝 Hard
994 prison-cells-after-n-days 📝 Medium
998 check-completeness-of-a-binary-tree 📝 Medium
999 regions-cut-by-slashes 📝 Medium
1000 delete-columns-to-make-sorted-iii 📝 Hard
1001 n-repeated-element-in-size-2n-array 📝 Easy
1002 maximum-width-ramp 📝 Medium
1003 minimum-area-rectangle-ii 📝 Medium
1004 least-operators-to-express-number 📝 Hard
1005 univalued-binary-tree 📝 Easy
1006 vowel-spellchecker 📝 Medium
1007 numbers-with-same-consecutive-differences 📝 Medium
1008 binary-tree-cameras 📝 Hard
1009 pancake-sorting 📝 Medium
1010 powerful-integers 📝 Easy
1011 flip-binary-tree-to-match-preorder-traversal 📝 Medium
1012 equal-rational-numbers 📝 Hard
1013 fibonacci-number Cpp 📝 Easy
1014 k-closest-points-to-origin 📝 Medium
1016 subarray-sums-divisible-by-k 📝 Medium
1017 odd-even-jump 📝 Hard
1018 largest-perimeter-triangle 📝 Easy
1019 squares-of-a-sorted-array 📝 Easy
1020 longest-turbulent-subarray 📝 Medium
1021 distribute-coins-in-binary-tree 📝 Medium
1022 unique-paths-iii 📝 Hard
1023 time-based-key-value-store Cpp 📝 Medium
1024 triples-with-bitwise-and-equal-to-zero Hard
1025 minimum-cost-for-tickets 📝 Medium
1026 string-without-aaa-or-bbb 📝 Medium
1027 sum-of-even-numbers-after-queries Cpp 📝 Easy
1028 interval-list-intersections Cpp 📝 Medium
1029 vertical-order-traversal-of-a-binary-tree 📝 Medium
1030 smallest-string-starting-from-leaf Cpp 📝 Medium
1031 add-to-array-form-of-integer Cpp 📝 Easy
1032 satisfiability-of-equality-equations Cpp 📝 Medium
1033 broken-calculator Cpp 📝 Medium
1034 subarrays-with-k-different-integers 📝 Hard
1035 cousins-in-binary-tree 📝 Easy
1036 rotting-oranges 📝 Easy
1037 minimum-number-of-k-consecutive-bit-flips 📝 Hard
1038 number-of-squareful-arrays 📝 Hard
1039 find-the-town-judge Easy
1040 maximum-binary-tree-ii Medium
1041 available-captures-for-rook Easy
1042 minimum-cost-to-merge-stones Hard
1043 grid-illumination Hard
1044 find-common-characters Easy
1045 check-if-word-is-valid-after-substitutions Medium
1046 max-consecutive-ones-iii 📝 Medium
1047 maximize-sum-of-array-after-k-negations Cpp Easy
1048 clumsy-factorial Cpp Medium
1049 minimum-domino-rotations-for-equal-row Cpp 📝 Medium
1050 construct-binary-search-tree-from-preorder-traversal Cpp 📝 Medium
1051 shortest-way-to-form-string 🔒 Medium
1052 campus-bikes 🔒 Medium
1053 minimize-rounding-error-to-meet-target 🔒 Medium
1054 complement-of-base-10-integer Cpp Easy
1055 pairs-of-songs-with-total-durations-divisible-by-60 Easy
1056 capacity-to-ship-packages-within-d-days Medium
1057 numbers-with-repeated-digits Hard
1058 lexicographically-smallest-equivalent-string 🔒 Medium
1059 missing-element-in-sorted-array 🔒 📝 Medium
1060 longest-repeating-substring 🔒 📝 Medium
1061 number-of-valid-subarrays 🔒 Hard
1062 partition-array-into-three-parts-with-equal-sum Easy
1063 best-sightseeing-pair Medium
1064 smallest-integer-divisible-by-k Medium
1065 binary-string-with-substrings-representing-1-to-n Medium
1066 fixed-point 🔒 Easy
1067 campus-bikes-ii 🔒 Medium
1068 digit-count-in-range 🔒 Hard
1069 confusing-number 🔒 Easy
1070 convert-to-base-2 Medium
1071 binary-prefix-divisible-by-5 Easy
1072 next-greater-node-in-linked-list Medium
1073 number-of-enclaves Medium
1074 high-five 🔒 Easy
1075 index-pairs-of-a-string 🔒 Easy
1076 brace-expansion 🔒 Medium
1077 confusing-number-ii 🔒 Hard
1078 remove-outermost-parentheses Easy
1079 sum-of-root-to-leaf-binary-numbers Easy
1080 camelcase-matching Medium
1081 video-stitching Medium
1082 sum-of-digits-in-the-minimum-number 🔒 Easy
1083 two-sum-less-than-k 🔒 Easy
1084 find-k-length-substrings-with-no-repeated-characters 🔒 Medium
1085 the-earliest-moment-when-everyone-become-friends 🔒 Medium
1086 divisor-game Easy
1087 longest-arithmetic-sequence Medium
1088 number-of-days-in-a-month 🔒 Easy
1089 remove-vowels-from-a-string 🔒 Easy
1090 armstrong-number 🔒 Easy
1091 maximum-average-subtree 🔒 Medium
1092 maximum-difference-between-node-and-ancestor Medium
1093 recover-a-tree-from-preorder-traversal Hard
1094 matrix-cells-in-distance-order Easy
1095 two-city-scheduling 📝 Easy
1096 maximum-sum-of-two-non-overlapping-subarrays Medium
1097 stream-of-characters Hard
1098 largest-unique-number 🔒 Easy
1099 path-with-maximum-minimum-value 🔒 Medium
1100 connecting-cities-with-minimum-cost 🔒 Medium
1101 parallel-courses 🔒 Hard
1102 check-if-a-number-is-majority-element-in-a-sorted-array 🔒 Easy
1103 moving-stones-until-consecutive Easy
1104 coloring-a-border Medium
1105 uncrossed-lines Medium
1106 escape-a-large-maze Hard
1107 minimum-swaps-to-group-all-1s-together 🔒 Medium
1108 analyze-user-website-visit-pattern 🔒 Medium
1111 minimum-score-triangulation-of-polygon Medium
1112 find-words-that-can-be-formed-by-characters Easy
1113 moving-stones-until-consecutive-ii Medium
1114 binary-search-tree-to-greater-sum-tree Medium
1115 valid-boomerang Easy
1116 maximum-level-sum-of-a-binary-tree 📝 Medium
1117 as-far-from-land-as-possible Medium
1118 divide-array-into-increasing-sequences 🔒 Hard
1119 robot-bounded-in-circle Medium
1120 flower-planting-with-no-adjacent Easy
1121 partition-array-for-maximum-sum Medium
1122 longest-duplicate-substring 📝 Hard
1123 single-row-keyboard 🔒 Easy
1124 string-transforms-into-another-string 🔒 Hard
1125 design-file-system 🔒 Medium
1126 minimum-cost-to-connect-sticks 🔒 Medium
1127 last-stone-weight Easy
1128 remove-all-adjacent-duplicates-in-string 📝 Easy
1129 longest-string-chain Medium
1130 last-stone-weight-ii Medium
1131 count-substrings-with-only-one-distinct-letter 🔒 Easy
1132 before-and-after-puzzle 🔒 Medium
1133 last-substring-in-lexicographical-order Hard
1134 shortest-distance-to-target-color 🔒 Medium
1137 height-checker Easy
1138 grumpy-bookstore-owner Medium
1139 previous-permutation-with-one-swap Medium
1140 distant-barcodes Medium
1141 how-many-apples-can-you-put-into-the-basket 🔒 Easy
1142 minimum-knight-moves 🔒 Medium
1143 find-smallest-common-element-in-all-rows 🔒 📝 Medium
1144 optimize-water-distribution-in-a-village 🔒 Hard
1145 number-of-submatrices-that-sum-to-target Hard
1146 greatest-common-divisor-of-strings Easy
1147 flip-columns-for-maximum-number-of-equal-rows Medium
1148 adding-two-negabinary-numbers Medium
1149 intersection-of-three-sorted-arrays 🔒 Easy
1150 two-sum-bsts 🔒 Medium
1151 stepping-numbers 🔒 Medium
1152 maximum-number-of-ones 🔒 Hard
1156 occurrences-after-bigram Easy
1157 insufficient-nodes-in-root-to-leaf-paths Medium
1159 smallest-subsequence-of-distinct-characters Medium
1160 letter-tile-possibilities Medium
1164 missing-number-in-arithmetic-progression 🔒 Easy
1165 meeting-scheduler 🔒 Medium
1166 toss-strange-coins 🔒 Medium
1167 minimum-time-to-build-blocks 🔒 Hard
1168 duplicate-zeros 📝 Easy
1169 largest-values-from-labels Medium
1170 shortest-common-supersequence Hard
1171 shortest-path-in-binary-matrix Medium
1175 array-transformation 🔒 Easy
1176 design-a-leaderboard 🔒 Medium
1177 tree-diameter 🔒 Medium
1178 valid-palindrome-iii 🔒 Hard
1183 statistics-from-a-large-sample Medium
1184 car-pooling Medium
1185 find-in-mountain-array Hard
1188 brace-expansion-ii Hard
1189 encode-number 🔒 Medium
1190 smallest-common-region 🔒 Medium
1191 synonymous-sentences 🔒 Medium
1192 divide-chocolate 🔒 Hard
1194 path-in-zigzag-labelled-binary-tree Medium
1195 distribute-candies-to-people 📝 Easy
1196 filling-bookcase-shelves Medium
1197 parsing-a-boolean-expression Hard
1199 hexspeak 🔒 Easy
1200 remove-interval 🔒 📝 Medium
1201 delete-tree-nodes 🔒 Medium
1202 palindrome-removal 🔒 Hard
1205 defanging-an-ip-address Easy
1206 corporate-flight-bookings Medium
1207 delete-nodes-and-return-forest Medium
1208 maximum-nesting-depth-of-two-valid-parentheses-strings Medium
1211 iterator-for-combination Medium
1212 sequential-digits 📝 Medium
1213 handshakes-that-dont-cross 🔒 Hard
1217 relative-sort-array Easy
1218 lowest-common-ancestor-of-deepest-leaves Medium
1219 longest-well-performing-interval Medium
1220 smallest-sufficient-team Hard
1221 element-appearing-more-than-25-in-sorted-array Easy
1222 remove-covered-intervals Medium
1224 minimum-falling-path-sum-ii Hard
1227 number-of-equivalent-domino-pairs Easy
1228 minimum-cost-tree-from-leaf-values Medium
1229 shortest-path-with-alternating-colors Medium
1230 maximum-of-absolute-value-expression Medium
1231 replace-elements-with-greatest-element-on-right-side Easy
1232 sum-of-mutated-array-closest-to-target Medium
1233 number-of-ships-in-a-rectangle 🔒 Hard
1234 number-of-paths-with-max-score Hard
1236 n-th-tribonacci-number 📝 Easy
1238 alphabet-board-path Medium
1239 largest-1-bordered-square Medium
1240 stone-game-ii Medium
1247 decrease-elements-to-make-array-zigzag Medium
1248 binary-tree-coloring-game Medium
1249 snapshot-array Medium
1250 longest-common-subsequence Medium
1251 longest-chunked-palindrome-decomposition Hard
1254 deepest-leaves-sum Medium
1260 day-of-the-year Easy
1261 swap-for-longest-repeated-character-substring Medium
1262 online-majority-element-in-subarray Hard
1263 number-of-dice-rolls-with-target-sum Medium
1267 remove-zero-sum-consecutive-nodes-from-linked-list Medium
1270 dinner-plate-stacks Hard
1271 web-crawler 🔒 Medium
1272 invalid-transactions Medium
1273 compare-strings-by-frequency-of-the-smallest-character Easy
1279 prime-arrangements Easy
1280 diet-plan-performance 🔒 Easy
1281 can-make-palindrome-from-substring Medium
1282 number-of-valid-words-for-each-puzzle Hard
1287 distance-between-bus-stops Easy
1288 maximum-subarray-sum-with-one-deletion Medium
1289 day-of-the-week Easy
1290 make-array-strictly-increasing Hard
1297 maximum-number-of-balloons Easy
1298 reverse-substrings-between-each-pair-of-parentheses Medium
1299 k-concatenation-maximum-sum Medium
1300 critical-connections-in-a-network Hard
1306 minimum-absolute-difference Easy
1307 ugly-number-iii Medium
1308 smallest-string-with-swaps Medium
1309 sort-items-by-groups-respecting-dependencies Hard
1319 unique-number-of-occurrences Easy
1320 remove-all-adjacent-duplicates-in-string-ii 📝 Medium
1321 get-equal-substrings-within-budget Medium
1322 minimum-moves-to-reach-target-with-rotations Hard
1329 play-with-chips Easy
1330 longest-arithmetic-subsequence-of-given-difference Medium
1331 path-with-maximum-gold Medium
1332 count-vowels-permutation Hard
1337 design-skiplist Hard
1341 split-a-string-in-balanced-strings Easy
1342 queens-that-can-attack-the-king Medium
1343 dice-roll-simulation Medium
1344 maximum-equal-frequency Hard
1349 check-if-it-is-a-straight-line Easy
1350 remove-sub-folders-from-the-filesystem Medium
1351 replace-the-substring-for-balanced-string Medium
1352 maximum-profit-in-job-scheduling Hard
1358 find-positive-integer-solution-for-a-given-equation Easy
1359 circular-permutation-in-binary-representation Medium
1360 maximum-length-of-a-concatenated-string-with-unique-characters Medium
1361 tiling-a-rectangle-with-the-fewest-squares Hard
1362 airplane-seat-assignment-probability Medium
1369 minimum-swaps-to-make-strings-equal Medium
1370 count-number-of-nice-subarrays Medium
1371 minimum-remove-to-make-valid-parentheses 📝 Medium
1372 check-if-it-is-a-good-array Hard
1378 cells-with-odd-values-in-a-matrix Easy
1379 reconstruct-a-2-row-binary-matrix Medium
1380 number-of-closed-islands Medium
1381 maximum-score-words-formed-by-letters Hard
1386 shift-2d-grid 📝 Easy
1387 find-elements-in-a-contaminated-binary-tree Medium
1388 greatest-sum-divisible-by-three Medium
1389 minimum-moves-to-move-a-box-to-their-target-location Hard
1395 minimum-time-visiting-all-points Easy
1396 count-servers-that-communicate Medium
1397 search-suggestions-system Medium
1398 number-of-ways-to-stay-in-the-same-place-after-some-steps Hard
1400 find-winner-on-a-tic-tac-toe-game Easy
1401 number-of-burgers-with-no-waste-of-ingredients Medium
1402 count-square-submatrices-with-all-ones Medium
1403 palindrome-partitioning-iii Hard
1404 print-immutable-linked-list-in-reverse 🔒 Medium
1406 subtract-the-product-and-sum-of-digits-of-an-integer Easy
1407 group-the-people-given-the-group-size-they-belong-to Medium
1408 find-the-smallest-divisor-given-a-threshold Medium
1409 minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix Hard
1411 convert-binary-number-in-a-linked-list-to-integer Easy
1413 maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold Medium
1414 shortest-path-in-a-grid-with-obstacles-elimination Hard
1421 find-numbers-with-even-number-of-digits Easy
1422 divide-array-in-sets-of-k-consecutive-numbers Medium
1423 maximum-number-of-occurrences-of-a-substring Medium
1424 maximum-candies-you-can-get-from-boxes Hard
1426 find-n-unique-integers-sum-up-to-zero Easy
1427 all-elements-in-two-binary-search-trees Medium
1428 jump-game-iii Medium
1429 verbal-arithmetic-puzzle Hard
1434 decrypt-string-from-alphabet-to-integer-mapping Easy
1435 xor-queries-of-a-subarray Medium
1436 get-watched-videos-by-your-friends Medium
1437 minimum-insertion-steps-to-make-a-string-palindrome Hard

About

My LeetCode solution with C++ and JAVA. 我在Leetcode刷题的解题代码,主要使用C++,部分使用Java。一些有意思的题目会放到博客里。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published