Home

Awesome

:pencil2: Leetcode Solutions with Cpp,Javascript,Python

Update time: 2018-09-12 22:01:06

Auto created by leetcode_generate

I have solved 203 / 851 problems while there are 139 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: :lock: means you need to buy a book from Leetcode to unlock the problem)

#TitleSource CodeArticleDifficulty
1two-sumJavascript:memo:Easy
2add-two-numbersJavascript:memo:Medium
3longest-substring-without-repeating-charactersJavascript:memo:Medium
4median-of-two-sorted-arraysJavascript:memo:Hard
5longest-palindromic-substringJavascript:memo:Medium
6zigzag-conversionJavascript:memo:Medium
7reverse-integerJavascript:memo:Easy
8string-to-integer-atoiJavascriptMedium
9palindrome-numberJavascript:memo:Easy
10regular-expression-matchingJavascript:memo:Hard
11container-with-most-waterJavascript:memo:Medium
12integer-to-romanJavascriptMedium
13roman-to-integerJavascriptEasy
14longest-common-prefixJavascript:memo:Easy
153sumJavascriptMedium
163sum-closestJavascriptMedium
17letter-combinations-of-a-phone-numberJavascriptMedium
184sumJavascriptMedium
19remove-nth-node-from-end-of-listJavascript:memo:Medium
20valid-parenthesesJavascriptEasy
21merge-two-sorted-listsJavascript:memo:Easy
22generate-parenthesesJavascript:memo:Medium
23merge-k-sorted-listsJavascript:memo:Hard
24swap-nodes-in-pairsJavascriptMedium
25reverse-nodes-in-k-groupJavascriptHard
26remove-duplicates-from-sorted-arrayJavascript:memo:Easy
27remove-elementJavascript:memo:Easy
28implement-strstrJavascript CppEasy
29divide-two-integersJavascriptMedium
30substring-with-concatenation-of-all-wordsJavascriptHard
31next-permutationJavascript:memo:Medium
32longest-valid-parenthesesJavascript:memo:Hard
33search-in-rotated-sorted-arrayJavascriptMedium
34find-first-and-last-position-of-element-in-sorted-arrayJavascript:memo:Medium
35search-insert-positionJavascriptEasy
36valid-sudokuJavascriptMedium
37sudoku-solverJavascriptHard
38count-and-sayJavascriptEasy
39combination-sumJavascriptMedium
40combination-sum-iiJavascriptMedium
41first-missing-positiveJavascriptHard
42trapping-rain-waterJavascript:memo:Hard
43multiply-stringsJavascriptMedium
44wildcard-matchingJavascriptHard
45jump-game-iiJavascriptHard
46permutationsJavascriptMedium
47permutations-iiJavascriptMedium
48rotate-imagePython JavascriptMedium
49group-anagramsJavascript:memo:Medium
50powx-nJavascript:memo:Medium
51n-queensJavascriptHard
52n-queens-iiJavascriptHard
53maximum-subarrayJavascriptEasy
54spiral-matrixJavascript:memo:Medium
55jump-gameJavascript:memo:Medium
56merge-intervalsJavascript:memo:Medium
57insert-intervalJavascriptHard
58length-of-last-wordJavascriptEasy
59spiral-matrix-iiJavascriptMedium
60permutation-sequenceJavascriptMedium
61rotate-listJavascriptMedium
62unique-pathsJavascriptMedium
63unique-paths-iiJavascriptMedium
64minimum-path-sumJavascript:memo:Medium
65valid-numberJavascriptHard
66plus-oneJavascriptEasy
67add-binaryJavascriptEasy
68text-justificationJavascriptHard
69sqrtxJavascriptEasy
70climbing-stairsJavascript:memo:Easy
71simplify-pathJavascriptMedium
72edit-distanceJavascriptHard
73set-matrix-zeroesJavascriptMedium
74search-a-2d-matrixJavascriptMedium
75sort-colorsJavascriptMedium
76minimum-window-substringJavascript:memo:Hard
77combinationsJavascriptMedium
78subsetsJavascriptMedium
79word-searchJavascriptMedium
80remove-duplicates-from-sorted-array-iiJavascriptMedium
81search-in-rotated-sorted-array-iiJavascriptMedium
82remove-duplicates-from-sorted-list-iiJavascriptMedium
83remove-duplicates-from-sorted-listJavascript:memo:Easy
84largest-rectangle-in-histogramJavascript:memo:Hard
85maximal-rectangleJavascriptHard
86partition-listJavascriptMedium
87scramble-stringJavascriptHard
88merge-sorted-arrayJavascriptEasy
89gray-codeJavascriptMedium
90subsets-iiJavascriptMedium
91decode-waysJavascriptMedium
92reverse-linked-list-iiJavascriptMedium
93restore-ip-addressesJavascriptMedium
94binary-tree-inorder-traversalJavascript:memo:Medium
95unique-binary-search-trees-iiJavascriptMedium
96unique-binary-search-treesJavascript:memo:Medium
97interleaving-stringJavascript:memo:Hard
98validate-binary-search-treeJavascriptMedium
99recover-binary-search-treeJavascriptHard
100same-treeJavascriptEasy
101symmetric-treeJavascript:memo:Easy
102binary-tree-level-order-traversalJavascriptMedium
103binary-tree-zigzag-level-order-traversalJavascriptMedium
104maximum-depth-of-binary-treeJavascriptEasy
105construct-binary-tree-from-preorder-and-inorder-traversalJavascriptMedium
106construct-binary-tree-from-inorder-and-postorder-traversalJavascriptMedium
107binary-tree-level-order-traversal-iiJavascriptEasy
108convert-sorted-array-to-binary-search-treeJavascriptEasy
109convert-sorted-list-to-binary-search-treeJavascriptMedium
110balanced-binary-treeJavascriptEasy
111minimum-depth-of-binary-treeJavascriptEasy
112path-sumJavascriptEasy
113path-sum-iiJavascriptMedium
114flatten-binary-tree-to-linked-listJavascriptMedium
115distinct-subsequencesCppHard
116populating-next-right-pointers-in-each-nodeCppMedium
117populating-next-right-pointers-in-each-node-iiCppMedium
118pascals-triangleCpp:memo:Easy
119pascals-triangle-iiCppEasy
120triangleCppMedium
121best-time-to-buy-and-sell-stockJavascript Cpp:memo:Easy
122best-time-to-buy-and-sell-stock-iiCpp:memo:Easy
123best-time-to-buy-and-sell-stock-iiiCppHard
124binary-tree-maximum-path-sumCppHard
125valid-palindromeCppEasy
126word-ladder-iiCppHard
127word-ladderCppMedium
128longest-consecutive-sequenceCpp:memo:Hard
129sum-root-to-leaf-numbersCppMedium
130surrounded-regionsCppMedium
131palindrome-partitioningCppMedium
132palindrome-partitioning-iiCppHard
133clone-graphCppMedium
134gas-stationCppMedium
135candyCpp:memo:Hard
136single-numberCpp:memo:Easy
137single-number-iiCppMedium
138copy-list-with-random-pointerCpp:memo:Medium
139word-breakCpp:memo:Medium
140word-break-iiCpp:memo:Hard
141linked-list-cycleCpp:memo:Easy
142linked-list-cycle-iiCpp:memo:Medium
143reorder-listCppMedium
144binary-tree-preorder-traversalCppMedium
145binary-tree-postorder-traversalCppHard
146lru-cacheCppHard
147insertion-sort-listCppMedium
148sort-listCppMedium
149max-points-on-a-lineCppHard
150evaluate-reverse-polish-notationCppMedium
151reverse-words-in-a-stringCppMedium
152maximum-product-subarrayCppMedium
153find-minimum-in-rotated-sorted-arrayCpp:memo:Medium
154find-minimum-in-rotated-sorted-array-iiCppHard
155min-stackCppEasy
156binary-tree-upside-down:lock:Medium
157read-n-characters-given-read4:lock:Easy
158read-n-characters-given-read4-ii-call-multiple-times:lock:Hard
159longest-substring-with-at-most-two-distinct-characters:lock:Hard
160intersection-of-two-linked-listsCpp:memo:Easy
161one-edit-distance:lock:Medium
162find-peak-elementCpp:memo:Medium
163missing-ranges:lock:Medium
164maximum-gapCpp:memo:Hard
165compare-version-numbersJavascript CppMedium
166fraction-to-recurring-decimalCpp:memo:Medium
167two-sum-ii-input-array-is-sortedCpp:memo:Easy
168excel-sheet-column-titleCppEasy
169majority-elementJavascript Cpp:memo:Easy
170two-sum-iii-data-structure-design:lock:Easy
171excel-sheet-column-numberCppEasy
172factorial-trailing-zeroesCppEasy
173binary-search-tree-iteratorCppMedium
174dungeon-gameCppHard
179largest-numberCpp:memo:Medium
186reverse-words-in-a-string-ii:lock:Medium
187repeated-dna-sequencesCppMedium
188best-time-to-buy-and-sell-stock-ivCppHard
189rotate-arrayJavascript Cpp:memo:Easy
190reverse-bitsJavascript CppEasy
191number-of-1-bitsJavascript Cpp:memo:Easy
198house-robberCpp:memo:Easy
199binary-tree-right-side-viewCpp:memo:Medium
200number-of-islandsCpp:memo:Medium
201bitwise-and-of-numbers-rangeCppMedium
202happy-numberCppEasy
203remove-linked-list-elementsCppEasy
204count-primesCppEasy
205isomorphic-stringsJavascript CppEasy
206reverse-linked-listCpp:memo:Easy
207course-scheduleCppMedium
208implement-trie-prefix-treeCpp:memo:Medium
209minimum-size-subarray-sumCpp:memo:Medium
210course-schedule-iiCppMedium
211add-and-search-word-data-structure-designCppMedium
212word-search-iiCppHard
213house-robber-iiCppMedium
214shortest-palindromeCpp:memo:Hard
215kth-largest-element-in-an-arrayCppMedium
216combination-sum-iiiCppMedium
217contains-duplicateJavascript Cpp:memo:Easy
218the-skyline-problemCppHard
219contains-duplicate-iiJavascript Cpp:memo:Easy
220contains-duplicate-iiiCpp:memo:Medium
221maximal-squareCpp:memo:Medium
222count-complete-tree-nodesCppMedium
223rectangle-areaCppMedium
224basic-calculatorCppHard
225implement-stack-using-queuesJavascript:memo:Easy
226invert-binary-tree:memo:Easy
227basic-calculator-iiMedium
228summary-ranges:memo:Medium
229majority-element-iiMedium
230kth-smallest-element-in-a-bstMedium
231power-of-twoEasy
232implement-queue-using-stacks:memo:Easy
233number-of-digit-one:memo:Hard
234palindrome-linked-listEasy
235lowest-common-ancestor-of-a-binary-search-treeEasy
236lowest-common-ancestor-of-a-binary-treeMedium
237delete-node-in-a-linked-list:memo:Easy
238product-of-array-except-selfMedium
239sliding-window-maximumHard
240search-a-2d-matrix-ii:memo:Medium
241different-ways-to-add-parenthesesMedium
242valid-anagram:memo:Easy
243shortest-word-distance:lock::memo:Easy
244shortest-word-distance-ii:lock:Medium
245shortest-word-distance-iii:lock:Medium
246strobogrammatic-number:lock:Easy
247strobogrammatic-number-ii:lock:Medium
248strobogrammatic-number-iii:lock:Hard
249group-shifted-strings:lock:Medium
250count-univalue-subtrees:lock:Medium
251flatten-2d-vector:lock:Medium
252meeting-rooms:lock::memo:Easy
253meeting-rooms-ii:lock::memo:Medium
254factor-combinations:lock:Medium
255verify-preorder-sequence-in-binary-search-tree:lock:Medium
256paint-house:lock:Easy
257binary-tree-pathsEasy
258add-digitsEasy
2593sum-smaller:lock::memo:Medium
260single-number-iiiMedium
261graph-valid-tree:lock:Medium
263ugly-numberEasy
264ugly-number-iiMedium
265paint-house-ii:lock:Hard
266palindrome-permutation:lock::memo:Easy
267palindrome-permutation-ii:lock::memo:Medium
268missing-number:memo:Easy
269alien-dictionary:lock:Hard
270closest-binary-search-tree-value:lock:Easy
271encode-and-decode-strings:lock:Medium
272closest-binary-search-tree-value-ii:lock:Hard
273integer-to-english-wordsHard
274h-index:memo:Medium
275h-index-iiMedium
276paint-fence:lock:Easy
277find-the-celebrity:lock:Medium
278first-bad-version:memo:Easy
279perfect-squaresMedium
280wiggle-sort:lock::memo:Medium
281zigzag-iterator:lock:Medium
282expression-add-operators:memo:Hard
283move-zeroes:memo:Easy
284peeking-iteratorMedium
285inorder-successor-in-bst:lock:Medium
286walls-and-gates:lock::memo:Medium
287find-the-duplicate-number:memo:Medium
288unique-word-abbreviation:lock::memo:Medium
289game-of-lifeMedium
290word-patternEasy
291word-pattern-ii:lock:Hard
292nim-game:memo:Easy
293flip-game:lock:Easy
294flip-game-ii:lock:Medium
295find-median-from-data-stream:memo:Hard
296best-meeting-point:lock::memo:Hard
297serialize-and-deserialize-binary-treeHard
298binary-tree-longest-consecutive-sequence:lock::memo:Medium
299bulls-and-cowsMedium
300longest-increasing-subsequence:memo:Medium
301remove-invalid-parenthesesHard
302smallest-rectangle-enclosing-black-pixels:lock::memo:Hard
303range-sum-query-immutable:memo:Easy
304range-sum-query-2d-immutable:memo:Medium
305number-of-islands-ii:lock::memo:Hard
306additive-numberMedium
307range-sum-query-mutable:memo:Medium
308range-sum-query-2d-mutable:lock:Hard
309best-time-to-buy-and-sell-stock-with-cooldownMedium
310minimum-height-treesMedium
311sparse-matrix-multiplication:lock:Medium
312burst-balloonsHard
313super-ugly-numberMedium
314binary-tree-vertical-order-traversal:lock:Medium
315count-of-smaller-numbers-after-selfHard
316remove-duplicate-lettersHard
317shortest-distance-from-all-buildings:lock:Hard
318maximum-product-of-word-lengthsMedium
319bulb-switcherMedium
320generalized-abbreviation:lock::memo:Medium
321create-maximum-numberHard
322coin-change:memo:Medium
323number-of-connected-components-in-an-undirected-graph:lock:Medium
324wiggle-sort-iiMedium
325maximum-size-subarray-sum-equals-k:lock:Medium
326power-of-three:memo:Easy
327count-of-range-sumHard
328odd-even-linked-list:memo:Medium
329longest-increasing-path-in-a-matrix:memo:Hard
330patching-array:memo:Hard
331verify-preorder-serialization-of-a-binary-treeMedium
332reconstruct-itineraryMedium
333largest-bst-subtree:lock:Medium
334increasing-triplet-subsequenceMedium
335self-crossingHard
336palindrome-pairsHard
337house-robber-iiiMedium
338counting-bits:memo:Medium
339nested-list-weight-sum:lock::memo:Easy
340longest-substring-with-at-most-k-distinct-characters:lock:Hard
341flatten-nested-list-iteratorMedium
342power-of-fourEasy
343integer-breakMedium
344reverse-stringEasy
345reverse-vowels-of-a-stringEasy
346moving-average-from-data-stream:lock:Easy
347top-k-frequent-elementsMedium
348design-tic-tac-toe:lock:Medium
349intersection-of-two-arraysEasy
350intersection-of-two-arrays-iiEasy
351android-unlock-patterns:lock::memo:Medium
352data-stream-as-disjoint-intervalsHard
353design-snake-game:lock:Medium
354russian-doll-envelopesHard
355design-twitterMedium
356line-reflection:lock:Medium
357count-numbers-with-unique-digitsMedium
358rearrange-string-k-distance-apart:lock:Hard
359logger-rate-limiter:lock:Easy
360sort-transformed-array:lock:Medium
361bomb-enemy:lock:Medium
362design-hit-counter:lock:Medium
363max-sum-of-rectangle-no-larger-than-kHard
364nested-list-weight-sum-ii:lock:Medium
365water-and-jug-problemMedium
366find-leaves-of-binary-tree:lock:Medium
367valid-perfect-squareEasy
368largest-divisible-subsetMedium
369plus-one-linked-list:lock:Medium
370range-addition:lock::memo:Medium
371sum-of-two-integersCppEasy
372super-powMedium
373find-k-pairs-with-smallest-sumsMedium
374guess-number-higher-or-lowerCpp:memo:Easy
375guess-number-higher-or-lower-ii:memo:Medium
376wiggle-subsequence:memo:Medium
377combination-sum-ivMedium
378kth-smallest-element-in-a-sorted-matrixMedium
379design-phone-directory:lock:Medium
380insert-delete-getrandom-o1Medium
381insert-delete-getrandom-o1-duplicates-allowedHard
382linked-list-random-nodeMedium
383ransom-noteEasy
384shuffle-an-array:memo:Medium
385mini-parserMedium
386lexicographical-numbersMedium
387first-unique-character-in-a-stringEasy
388longest-absolute-file-pathMedium
389find-the-differenceEasy
390elimination-gameMedium
391perfect-rectangleHard
392is-subsequenceMedium
393utf-8-validationMedium
394decode-stringMedium
395longest-substring-with-at-least-k-repeating-charactersMedium
396rotate-functionMedium
397integer-replacementMedium
398random-pick-indexMedium
399evaluate-divisionMedium
400nth-digitEasy
401binary-watchEasy
402remove-k-digitsMedium
403frog-jump:memo:Hard
404sum-of-left-leavesEasy
405convert-a-number-to-hexadecimalEasy
406queue-reconstruction-by-heightMedium
407trapping-rain-water-iiHard
408valid-word-abbreviation:lock:Easy
409longest-palindrome:memo:Easy
410split-array-largest-sum:memo:Hard
411minimum-unique-word-abbreviation:lock:Hard
412fizz-buzzEasy
413arithmetic-slices:memo:Medium
414third-maximum-numberEasy
415add-stringsEasy
416partition-equal-subset-sumMedium
417pacific-atlantic-water-flowMedium
418sentence-screen-fitting:lock:Medium
419battleships-in-a-boardMedium
420strong-password-checkerHard
421maximum-xor-of-two-numbers-in-an-arrayMedium
422valid-word-square:lock:Easy
423reconstruct-original-digits-from-englishMedium
424longest-repeating-character-replacementMedium
425word-squares:lock:Hard
432all-oone-data-structureHard
433minimum-genetic-mutationMedium
434number-of-segments-in-a-string:memo:Easy
435non-overlapping-intervals:memo:Medium
436find-right-interval:memo:Medium
437path-sum-iiiEasy
438find-all-anagrams-in-a-stringEasy
439ternary-expression-parser:lock:Medium
440k-th-smallest-in-lexicographical-orderHard
441arranging-coinsEasy
442find-all-duplicates-in-an-arrayMedium
443string-compression:memo:Easy
444sequence-reconstruction:lock:Medium
445add-two-numbers-iiMedium
446arithmetic-slices-ii-subsequence:memo:Hard
447number-of-boomerangsEasy
448find-all-numbers-disappeared-in-an-arrayEasy
449serialize-and-deserialize-bstMedium
450delete-node-in-a-bstMedium
451sort-characters-by-frequencyMedium
452minimum-number-of-arrows-to-burst-balloonsMedium
453minimum-moves-to-equal-array-elements:memo:Easy
4544sum-iiMedium
455assign-cookiesEasy
456132-pattern:memo:Medium
457circular-array-loopMedium
458poor-pigsEasy
459repeated-substring-patternEasy
460lfu-cacheHard
461hamming-distanceEasy
462minimum-moves-to-equal-array-elements-ii:memo:Medium
463island-perimeterEasy
464can-i-winMedium
465optimal-account-balancing:lock:Hard
466count-the-repetitions:memo:Hard
467unique-substrings-in-wraparound-stringMedium
468validate-ip-addressMedium
469convex-polygon:lock:Medium
471encode-string-with-shortest-length:lock:Hard
472concatenated-wordsHard
473matchsticks-to-square:memo:Medium
474ones-and-zeroes:memo:Medium
475heatersEasy
476number-complementEasy
477total-hamming-distance:memo:Medium
479largest-palindrome-productEasy
480sliding-window-median:memo:Hard
481magical-stringMedium
482license-key-formattingEasy
483smallest-good-baseHard
484find-permutation:lock::memo:Medium
485max-consecutive-onesEasy
486predict-the-winner:memo:Medium
487max-consecutive-ones-ii:lock:Medium
488zuma-gameHard
490the-maze:lock::memo:Medium
491increasing-subsequencesMedium
492construct-the-rectangleEasy
493reverse-pairs:memo:Hard
494target-sum:memo:Medium
495teemo-attackingMedium
496next-greater-element-i:memo:Easy
498diagonal-traverseMedium
499the-maze-iii:lock:Hard
500keyboard-rowEasy
501find-mode-in-binary-search-treeEasy
502ipoHard
503next-greater-element-ii:memo:Medium
504base-7Easy
505the-maze-ii:lock::memo:Medium
506relative-ranksEasy
507perfect-number:memo:Easy
508most-frequent-subtree-sumMedium
513find-bottom-left-tree-valueMedium
514freedom-trailHard
515find-largest-value-in-each-tree-rowMedium
516longest-palindromic-subsequenceMedium
517super-washing-machinesHard
518coin-change-2Medium
520detect-capitalEasy
521longest-uncommon-subsequence-i:memo:Easy
522longest-uncommon-subsequence-ii:memo:Medium
523continuous-subarray-sum:memo:Medium
524longest-word-in-dictionary-through-deleting:memo:Medium
525contiguous-array:memo:Medium
526beautiful-arrangement:memo:Medium
527word-abbreviation:lock::memo:Hard
529minesweeperMedium
530minimum-absolute-difference-in-bstEasy
531lonely-pixel-i:lock:Medium
532k-diff-pairs-in-an-arrayEasy
533lonely-pixel-ii:lock:Medium
535encode-and-decode-tinyurl:memo:Medium
536construct-binary-tree-from-string:lock:Medium
537complex-number-multiplication:memo:Medium
538convert-bst-to-greater-tree:memo:Easy
539minimum-time-differenceMedium
540single-element-in-a-sorted-arrayMedium
541reverse-string-ii:memo:Easy
54201-matrix:memo:Medium
543diameter-of-binary-tree:memo:Easy
544output-contest-matches:lock::memo:Medium
545boundary-of-binary-tree:lock::memo:Medium
546remove-boxes:memo:Hard
547friend-circles:memo:Medium
548split-array-with-equal-sum:lock::memo:Medium
549binary-tree-longest-consecutive-sequence-ii:lock::memo:Medium
551student-attendance-record-i:memo:Easy
552student-attendance-record-ii:memo:Hard
553optimal-division:memo:Medium
554brick-wall:memo:Medium
555split-concatenated-strings:lock::memo:Medium
556next-greater-element-iii:memo:Medium
557reverse-words-in-a-string-iii:memo:Easy
560subarray-sum-equals-k:memo:Medium
561array-partition-i:memo:Easy
562longest-line-of-consecutive-one-in-matrix:lock::memo:Medium
563binary-tree-tilt:memo:Easy
564find-the-closest-palindrome:memo:Hard
565array-nesting:memo:Medium
566reshape-the-matrix:memo:Easy
567permutation-in-string:memo:Medium
568maximum-vacation-days:lock::memo:Hard
572subtree-of-another-tree:memo:Easy
573squirrel-simulation:lock::memo:Medium
575distribute-candies:memo:Easy
576out-of-boundary-paths:memo:Medium
581shortest-unsorted-continuous-subarray:memo:Easy
582kill-process:lock::memo:Medium
583delete-operation-for-two-strings:memo:Medium
587erect-the-fence:memo:Hard
588design-in-memory-file-system:lock::memo:Hard
591tag-validator:memo:Hard
592fraction-addition-and-subtraction:memo:Medium
593valid-square:memo:Medium
594longest-harmonious-subsequence:memo:Easy
598range-addition-ii:memo:Easy
599minimum-index-sum-of-two-lists:memo:Easy
600non-negative-integers-without-consecutive-ones:memo:Hard
604design-compressed-string-iterator:lock::memo:Easy
605can-place-flowers:memo:Easy
606construct-string-from-binary-tree:memo:Easy
609find-duplicate-file-in-system:memo:Medium
611valid-triangle-number:memo:Medium
616add-bold-tag-in-string:lock::memo:Medium
617merge-two-binary-trees:memo:Easy
621task-scheduler:memo:Medium
623add-one-row-to-tree:memo:Medium
624maximum-distance-in-arrays:lock::memo:Easy
625minimum-factorization:lock::memo:Medium
628maximum-product-of-three-numbers:memo:Easy
629k-inverse-pairs-array:memo:Hard
630course-schedule-iii:memo:Hard
631design-excel-sum-formula:lock::memo:Hard
632smallest-range:memo:Hard
633sum-of-square-numbers:memo:Easy
634find-the-derangement-of-an-array:lock::memo:Medium
635design-log-storage-system:lock::memo:Medium
636exclusive-time-of-functions:memo:Medium
637average-of-levels-in-binary-tree:memo:Easy
638shopping-offers:memo:Medium
639decode-ways-ii:memo:Hard
640solve-the-equation:memo:Medium
642design-search-autocomplete-system:lock::memo:Hard
643maximum-average-subarray-i:memo:Easy
644maximum-average-subarray-ii:lock::memo:Hard
645set-mismatch:memo:Easy
646maximum-length-of-pair-chain:memo:Medium
647palindromic-substrings:memo:Medium
648replace-words:memo:Medium
649dota2-senate:memo:Medium
6502-keys-keyboard:memo:Medium
6514-keys-keyboard:lock::memo:Medium
652find-duplicate-subtrees:memo:Medium
653two-sum-iv-input-is-a-bst:memo:Easy
654maximum-binary-tree:memo:Medium
655print-binary-tree:memo:Medium
656coin-path:lock::memo:Hard
657robot-return-to-origin:memo:Easy
658find-k-closest-elements:memo:Medium
659split-array-into-consecutive-subsequences:memo:Medium
660remove-9:lock::memo:Hard
661image-smoother:memo:Easy
662maximum-width-of-binary-tree:memo:Medium
663equal-tree-partition:lock::memo:Medium
664strange-printer:memo:Hard
665non-decreasing-array:memo:Easy
666path-sum-iv:lock::memo:Medium
667beautiful-arrangement-ii:memo:Medium
668kth-smallest-number-in-multiplication-table:memo:Hard
669trim-a-binary-search-tree:memo:Easy
670maximum-swap:memo:Medium
671second-minimum-node-in-a-binary-tree:memo:Easy
672bulb-switcher-ii:memo:Medium
673number-of-longest-increasing-subsequence:memo:Medium
674longest-continuous-increasing-subsequence:memo:Easy
675cut-off-trees-for-golf-event:memo:Hard
676implement-magic-dictionary:memo:Medium
677map-sum-pairs:memo:Medium
678valid-parenthesis-string:memo:Medium
67924-game:memo:Hard
680valid-palindrome-ii:memo:Easy
681next-closest-time:lock::memo:Medium
682baseball-game:memo:Easy
683k-empty-slots:lock::memo:Hard
684redundant-connection:memo:Medium
685redundant-connection-ii:memo:Hard
686repeated-string-match:memo:Easy
687longest-univalue-path:memo:Easy
688knight-probability-in-chessboard:memo:Medium
689maximum-sum-of-3-non-overlapping-subarrays:memo:Hard
690employee-importance:memo:Easy
691stickers-to-spell-word:memo:Hard
692top-k-frequent-words:memo:Medium
693binary-number-with-alternating-bits:memo:Easy
694number-of-distinct-islands:lock::memo:Medium
695max-area-of-island:memo:Easy
696count-binary-substrings:memo:Easy
697degree-of-an-array:memo:Easy
698partition-to-k-equal-sum-subsets:memo:Medium
699falling-squares:memo:Hard
711number-of-distinct-islands-ii:lock::memo:Hard
712minimum-ascii-delete-sum-for-two-strings:memo:Medium
713subarray-product-less-than-k:memo:Medium
714best-time-to-buy-and-sell-stock-with-transaction-fee:memo:Medium
715range-module:memo:Hard
716max-stack:lock::memo:Hard
7171-bit-and-2-bit-characters:memo:Easy
718maximum-length-of-repeated-subarray:memo:Medium
719find-k-th-smallest-pair-distance:memo:Hard
720longest-word-in-dictionary:memo:Easy
721accounts-merge:memo:Medium
722remove-comments:memo:Medium
723candy-crush:lock::memo:Medium
724find-pivot-index:memo:Easy
725split-linked-list-in-parts:memo:Medium
726number-of-atoms:memo:Hard
727minimum-window-subsequence:lock::memo:Hard
728self-dividing-numbers:memo:Easy
729my-calendar-i:memo:Medium
730count-different-palindromic-subsequences:memo:Hard
731my-calendar-ii:memo:Medium
732my-calendar-iii:memo:Hard
733flood-fill:memo:Easy
734sentence-similarity:lock::memo:Easy
735asteroid-collision:memo:Medium
736parse-lisp-expression:memo:Hard
737sentence-similarity-ii:lock::memo:Medium
738monotone-increasing-digits:memo:Medium
739daily-temperatures:memo:Medium
740delete-and-earn:memo:Medium
741cherry-pickup:memo:Hard
742to-lower-caseEasy
743closest-leaf-in-a-binary-tree:lock::memo:Medium
744network-delay-time:memo:Medium
745find-smallest-letter-greater-than-target:memo:Easy
746prefix-and-suffix-search:memo:Hard
747min-cost-climbing-stairs:memo:Easy
748largest-number-at-least-twice-of-others:memo:Easy
749shortest-completing-word:memo:Medium
750contain-virus:memo:Hard
751number-of-corner-rectangles:lock::memo:Medium
752ip-to-cidr:lock::memo:Easy
753open-the-lock:memo:Medium
754cracking-the-safe:memo:Hard
755reach-a-number:memo:Medium
756pour-water:lock::memo:Medium
757pyramid-transition-matrix:memo:Medium
758convert-binary-search-tree-to-sorted-doubly-linked-list:lock:Medium
759set-intersection-size-at-least-two:memo:Hard
760bold-words-in-string:lock::memo:Easy
761employee-free-time:lock::memo:Hard
762find-anagram-mappings:lock::memo:Easy
763special-binary-string:memo:Hard
764n-ary-tree-level-order-traversalEasy
765serialize-and-deserialize-n-ary-tree:lock:Hard
766flatten-a-multilevel-doubly-linked-listMedium
767prime-number-of-set-bits-in-binary-representation:memo:Easy
768partition-labels:memo:Medium
769largest-plus-sign:memo:Medium
770couples-holding-hands:memo:Hard
771encode-n-ary-tree-to-binary-tree:lock:Hard
772construct-quad-treeEasy
773quad-tree-intersectionEasy
774maximum-depth-of-n-ary-treeEasy
775n-ary-tree-preorder-traversalEasy
776n-ary-tree-postorder-traversalEasy
777toeplitz-matrix:memo:Easy
778reorganize-string:memo:Medium
779max-chunks-to-make-sorted-ii:memo:Hard
780max-chunks-to-make-sorted:memo:Medium
781basic-calculator-iv:memo:Hard
782jewels-and-stones:memo:Easy
783search-in-a-binary-search-treeEasy
784insert-into-a-binary-search-treeMedium
785basic-calculator-iii:lock:Hard
786search-in-a-sorted-array-of-unknown-size:lock:Medium
787sliding-puzzle:memo:Hard
788minimize-max-distance-to-gas-station:lock::memo:Hard
789kth-largest-element-in-a-streamEasy
790global-and-local-inversions:memo:Medium
791split-bst:lock::memo:Medium
792binary-searchEasy
793swap-adjacent-in-lr-string:memo:Medium
794swim-in-rising-water:memo:Hard
795k-th-symbol-in-grammar:memo:Medium
796reaching-points:memo:Hard
797rabbits-in-forest:memo:Medium
798transform-to-chessboard:memo:Hard
799minimum-distance-between-bst-nodes:memo:Easy
800letter-case-permutation:memo:Easy
801is-graph-bipartite:memo:Medium
802k-th-smallest-prime-fraction:memo:Hard
803cheapest-flights-within-k-stops:memo:Medium
804rotated-digits:memo:Easy
805escape-the-ghosts:memo:Medium
806domino-and-tromino-tiling:memo:Medium
807custom-sort-string:memo:Medium
808number-of-matching-subsequences:memo:Medium
809preimage-size-of-factorial-zeroes-function:memo:Hard
810valid-tic-tac-toe-state:memo:Medium
811number-of-subarrays-with-bounded-maximum:memo:Medium
812rotate-string:memo:Easy
813all-paths-from-source-to-target:memo:Medium
814smallest-rotation-with-highest-score:memo:Hard
815champagne-tower:memo:Medium
816design-hashsetEasy
817design-hashmapEasy
818similar-rgb-color:lock::memo:Easy
819minimum-swaps-to-make-sequences-increasing:memo:Medium
820find-eventual-safe-states:memo:Medium
821bricks-falling-when-hit:memo:Hard
822unique-morse-code-words:memo:Easy
823split-array-with-same-average:memo:Hard
824number-of-lines-to-write-string:memo:Easy
825max-increase-to-keep-city-skyline:memo:Medium
826soup-servings:memo:Medium
827expressive-words:memo:Medium
828chalkboard-xor-game:memo:Hard
829subdomain-visit-count:memo:Easy
830largest-triangle-area:memo:Easy
831largest-sum-of-averages:memo:Medium
832binary-tree-pruning:memo:Medium
833bus-routes:memo:Hard
834ambiguous-coordinates:memo:Medium
835linked-list-components:memo:Medium
836race-car:memo:Hard
837most-common-word:memo:Easy
838design-linked-listEasy
839short-encoding-of-words:memo:Medium
841shortest-distance-to-a-character:memo:Easy
842card-flipping-game:memo:Medium
843binary-trees-with-factors:memo:Medium
850insert-into-a-cyclic-sorted-list:lock:Medium
851goat-latin:memo:Easy
852friends-of-appropriate-ages:memo:Medium
853most-profit-assigning-work:memo:Medium
854making-a-large-island:memo:Hard
855unique-letter-string:memo:Hard
856consecutive-numbers-sum:memo:Medium
857positions-of-large-groups:memo:Easy
858masking-personal-information:memo:Medium
859design-circular-dequeMedium
860design-circular-queueMedium
861flipping-an-image:memo:Easy
862find-and-replace-in-string:memo:Medium
863sum-of-distances-in-tree:memo:Hard
864image-overlap:memo:Medium
865robot-room-cleaner:lock:Hard
866rectangle-overlap:memo:Easy
867new-21-game:memo:Medium
868push-dominoes:memo:Medium
869similar-string-groups:memo:Hard
870magic-squares-in-grid:memo:Easy
871keys-and-rooms:memo:Medium
872split-array-into-fibonacci-sequence:memo:Medium
873guess-the-word:memo:Hard
874backspace-string-compare:memo:Easy
875longest-mountain-in-array:memo:Medium
876hand-of-straights:memo:Medium
877shortest-path-visiting-all-nodes:memo:Hard
878shifting-letters:memo:Medium
879maximize-distance-to-closest-person:memo:Easy
880rectangle-area-ii:memo:Hard
881loud-and-rich:memo:Medium
882peak-index-in-a-mountain-array:memo:Easy
883car-fleet:memo:Medium
884k-similar-strings:memo:Hard
885exam-room:memo:Medium
886score-of-parentheses:memo:Medium
887minimum-cost-to-hire-k-workers:memo:Hard
888mirror-reflection:memo:Medium
889buddy-strings:memo:Easy
890lemonade-change:memo:Easy
891score-after-flipping-matrix:memo:Medium
892shortest-subarray-with-sum-at-least-k:memo:Hard
893all-nodes-distance-k-in-binary-tree:memo:Medium
894random-pick-with-blacklist:memo:Hard
895shortest-path-to-get-all-keys:memo:Hard
896smallest-subtree-with-all-the-deepest-nodes:memo:Medium
897prime-palindrome:memo:Medium
898transpose-matrix:memo:Easy
899binary-gap:memo:Easy
900reordered-power-of-2:memo:Medium
901advantage-shuffle:memo:Medium
902minimum-number-of-refueling-stops:memo:Hard
903implement-rand10-using-rand7:memo:Medium
904leaf-similar-trees:memo:Easy
905length-of-longest-fibonacci-subsequence:memo:Medium
906walking-robot-simulation:memo:Easy
907koko-eating-bananas:memo:Medium
908middle-of-the-linked-list:memo:Easy
909stone-game:memo:Medium
910nth-magical-number:memo:Hard
911profitable-schemes:memo:Hard
912random-pick-with-weight:memo:Medium
913random-flip-matrix:memo:Medium
914random-point-in-non-overlapping-rectangles:memo:Medium
915generate-random-point-in-a-circle:memo:Medium
916decoded-string-at-index:memo:Medium
917boats-to-save-people:memo:Medium
918reachable-nodes-in-subdivided-graph:memo:Hard
919projection-area-of-3d-shapes:memo:Easy
920uncommon-words-from-two-sentences:memo:Easy
921spiral-matrix-iii:memo:Medium
922possible-bipartition:memo:Medium
923super-egg-drop:memo:Hard
924fair-candy-swap:memo:Easy
925construct-binary-tree-from-preorder-and-postorder-traversal:memo:Medium
926find-and-replace-pattern:memo:Medium
927sum-of-subsequence-widths:memo:Hard
928surface-area-of-3d-shapes:memo:Easy
929groups-of-special-equivalent-strings:memo:Easy
930all-possible-full-binary-trees:memo:Medium
931maximum-frequency-stack:memo:Hard
932monotonic-array:memo:Easy
933increasing-order-search-tree:memo:Easy
934bitwise-ors-of-subarrays:memo:Medium
935orderly-queue:memo:Hard
936rle-iterator:memo:Medium
937online-stock-span:memo:Medium
938numbers-at-most-n-given-digit-set:memo:Hard
939valid-permutations-for-di-sequence:memo:Hard