Home

Awesome

:pencil2: Leetcode Solutions with Python,Rust

Update time: 2019-08-24 06:54:58

Auto created by leetcode_generate

I have solved 113 / 1084 problems while there are 173 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-sumPython Rust:memo:Easy
2add-two-numbersPython:memo:Medium
3longest-substring-without-repeating-charactersPython:memo:Medium
4median-of-two-sorted-arraysPython:memo:Hard
5longest-palindromic-substringPython:memo:Medium
6zigzag-conversionPython:memo:Medium
7reverse-integerPython:memo:Easy
8string-to-integer-atoiPythonMedium
9palindrome-numberPython:memo:Easy
10regular-expression-matchingPython:memo:Hard
11container-with-most-waterPython:memo:Medium
12integer-to-romanPythonMedium
13roman-to-integerPythonEasy
14longest-common-prefixPython:memo:Easy
153sumPythonMedium
163sum-closestPythonMedium
17letter-combinations-of-a-phone-numberPython:memo:Medium
184sumPythonMedium
19remove-nth-node-from-end-of-listPython:memo:Medium
20valid-parenthesesPython:memo:Easy
21merge-two-sorted-listsPython:memo:Easy
22generate-parenthesesPython:memo:Medium
23merge-k-sorted-listsPython:memo:Hard
24swap-nodes-in-pairsPythonMedium
25reverse-nodes-in-k-groupPythonHard
26remove-duplicates-from-sorted-arrayPython:memo:Easy
27remove-elementPython:memo:Easy
28implement-strstrPythonEasy
29divide-two-integersMedium
30substring-with-concatenation-of-all-wordsHard
31next-permutation:memo:Medium
32longest-valid-parentheses:memo:Hard
33search-in-rotated-sorted-array:memo:Medium
34find-first-and-last-position-of-element-in-sorted-arrayPython:memo:Medium
35search-insert-positionPythonEasy
36valid-sudoku:memo:Medium
37sudoku-solver:memo:Hard
38count-and-sayPythonEasy
39combination-sumPythonMedium
40combination-sum-iiMedium
41first-missing-positivePython:memo:Hard
42trapping-rain-water:memo:Hard
43multiply-stringsMedium
44wildcard-matching:memo:Hard
45jump-game-iiHard
46permutations:memo:Medium
47permutations-iiMedium
48rotate-imagePython:memo:Medium
49group-anagrams:memo:Medium
50powx-nPython:memo:Medium
51n-queens:memo:Hard
52n-queens-ii:memo:Hard
53maximum-subarrayPython:memo:Easy
54spiral-matrixPython:memo:Medium
55jump-gamePython:memo:Medium
56merge-intervalsPython:memo:Medium
57insert-intervalPython:memo:Hard
58length-of-last-wordPythonEasy
59spiral-matrix-iiMedium
60permutation-sequenceMedium
61rotate-list:memo:Medium
62unique-pathsMedium
63unique-paths-ii:memo:Medium
64minimum-path-sum:memo:Medium
65valid-numberHard
66plus-onePythonEasy
67add-binaryPythonEasy
68text-justificationHard
69sqrtx:memo:Easy
70climbing-stairsPython:memo:Easy
71simplify-pathPythonMedium
72edit-distance:memo:Hard
73set-matrix-zeroesPython:memo:Medium
74search-a-2d-matrix:memo:Medium
75sort-colorsPython:memo:Medium
76minimum-window-substring:memo:Hard
77combinationsPython:memo:Medium
78subsetsPythonMedium
79word-searchPythonMedium
80remove-duplicates-from-sorted-array-iiPythonMedium
81search-in-rotated-sorted-array-iiMedium
82remove-duplicates-from-sorted-list-iiMedium
83remove-duplicates-from-sorted-listPython:memo:Easy
84largest-rectangle-in-histogram:memo:Hard
85maximal-rectangle:memo:Hard
86partition-listPython:memo:Medium
87scramble-stringHard
88merge-sorted-arrayPython:memo:Easy
89gray-codeMedium
90subsets-iiMedium
91decode-waysMedium
92reverse-linked-list-ii:memo:Medium
93restore-ip-addressesPython:memo:Medium
94binary-tree-inorder-traversalPython:memo:Medium
95unique-binary-search-trees-ii:memo:Medium
96unique-binary-search-trees:memo:Medium
97interleaving-stringPython:memo:Hard
98validate-binary-search-tree:memo:Medium
99recover-binary-search-tree:memo:Hard
100same-treePython:memo:Easy
101symmetric-treePython:memo:Easy
102binary-tree-level-order-traversal:memo:Medium
103binary-tree-zigzag-level-order-traversalMedium
104maximum-depth-of-binary-treePython:memo:Easy
105construct-binary-tree-from-preorder-and-inorder-traversal:memo:Medium
106construct-binary-tree-from-inorder-and-postorder-traversal:memo:Medium
107binary-tree-level-order-traversal-iiPythonEasy
108convert-sorted-array-to-binary-search-treePythonEasy
109convert-sorted-list-to-binary-search-tree:memo:Medium
110balanced-binary-treeEasy
111minimum-depth-of-binary-treePython:memo:Easy
112path-sumPython:memo:Easy
113path-sum-iiPythonMedium
114flatten-binary-tree-to-linked-listMedium
115distinct-subsequencesHard
116populating-next-right-pointers-in-each-nodeMedium
117populating-next-right-pointers-in-each-node-iiMedium
118pascals-trianglePython:memo:Easy
119pascals-triangle-iiPythonEasy
120triangleMedium
121best-time-to-buy-and-sell-stockPython:memo:Easy
122best-time-to-buy-and-sell-stock-iiPython:memo:Easy
123best-time-to-buy-and-sell-stock-iiiHard
124binary-tree-maximum-path-sum:memo:Hard
125valid-palindromePythonEasy
126word-ladder-iiHard
127word-ladder:memo:Medium
128longest-consecutive-sequence:memo:Hard
129sum-root-to-leaf-numbersMedium
130surrounded-regionsMedium
131palindrome-partitioningMedium
132palindrome-partitioning-iiHard
133clone-graphMedium
134gas-stationPython:memo:Medium
135candy:memo:Hard
136single-numberPython:memo:Easy
137single-number-iiPython:memo:Medium
138copy-list-with-random-pointer:memo:Medium
139word-break:memo:Medium
140word-break-ii:memo:Hard
141linked-list-cyclePython:memo:Easy
142linked-list-cycle-ii:memo:Medium
143reorder-listMedium
144binary-tree-preorder-traversal:memo:Medium
145binary-tree-postorder-traversal:memo:Hard
146lru-cache:memo:Medium
147insertion-sort-listMedium
148sort-listMedium
149max-points-on-a-line:memo:Hard
150evaluate-reverse-polish-notationMedium
151reverse-words-in-a-stringMedium
152maximum-product-subarrayMedium
153find-minimum-in-rotated-sorted-array:memo:Medium
154find-minimum-in-rotated-sorted-array-iiHard
155min-stackEasy
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::memo:Hard
160intersection-of-two-linked-lists:memo:Easy
161one-edit-distance:lock::memo:Medium
162find-peak-element:memo:Medium
163missing-ranges:lock:Medium
164maximum-gap:memo:Hard
165compare-version-numbersMedium
166fraction-to-recurring-decimal:memo:Medium
167two-sum-ii-input-array-is-sorted:memo:Easy
168excel-sheet-column-titleEasy
169majority-element:memo:Easy
170two-sum-iii-data-structure-design:lock:Easy
171excel-sheet-column-numberEasy
172factorial-trailing-zeroesEasy
173binary-search-tree-iterator:memo:Medium
174dungeon-gameHard
179largest-number:memo:Medium
186reverse-words-in-a-string-ii:lock:Medium
187repeated-dna-sequencesMedium
188best-time-to-buy-and-sell-stock-ivHard
189rotate-arrayPython:memo:Easy
190reverse-bitsEasy
191number-of-1-bits:memo:Easy
198house-robber:memo:Easy
199binary-tree-right-side-view:memo:Medium
200number-of-islands:memo:Medium
201bitwise-and-of-numbers-rangeMedium
202happy-numberEasy
203remove-linked-list-elementsEasy
204count-primesEasy
205isomorphic-stringsEasy
206reverse-linked-listPython:memo:Easy
207course-scheduleMedium
208implement-trie-prefix-tree:memo:Medium
209minimum-size-subarray-sum:memo:Medium
210course-schedule-ii:memo:Medium
211add-and-search-word-data-structure-designMedium
212word-search-iiHard
213house-robber-iiMedium
214shortest-palindrome:memo:Hard
215kth-largest-element-in-an-array:memo:Medium
216combination-sum-iiiMedium
217contains-duplicate:memo:Easy
218the-skyline-problem:memo:Hard
219contains-duplicate-ii:memo:Easy
220contains-duplicate-iii:memo:Medium
221maximal-square:memo:Medium
222count-complete-tree-nodes:memo:Medium
223rectangle-areaMedium
224basic-calculator:memo:Hard
225implement-stack-using-queues:memo:Easy
226invert-binary-tree:memo:Easy
227basic-calculator-iiPythonMedium
228summary-ranges:memo:Medium
229majority-element-iiMedium
230kth-smallest-element-in-a-bst:memo:Medium
231power-of-two:memo:Easy
232implement-queue-using-stacks:memo:Easy
233number-of-digit-one:memo:Hard
234palindrome-linked-listEasy
235lowest-common-ancestor-of-a-binary-search-tree:memo:Easy
236lowest-common-ancestor-of-a-binary-tree:memo:Medium
237delete-node-in-a-linked-listPython:memo:Easy
238product-of-array-except-self:memo:Medium
239sliding-window-maximum:memo:Hard
240search-a-2d-matrix-iiPython:memo:Medium
241different-ways-to-add-parenthesesMedium
242valid-anagramPython:memo:Easy
243shortest-word-distance:lock::memo:Easy
244shortest-word-distance-ii:lock::memo: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::memo: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-paths:memo:Easy
258add-digitsEasy
2593sum-smaller:lock::memo:Medium
260single-number-iiiMedium
261graph-valid-tree:lock:Medium
263ugly-numberPythonEasy
264ugly-number-iiPython:memo:Medium
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::memo:Easy
271encode-and-decode-strings:lock::memo:Medium
272closest-binary-search-tree-value-ii:lock:Hard
273integer-to-english-words:memo:Hard
274h-indexPython:memo:Medium
275h-index-iiPython:memo:Medium
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::memo:Medium
286walls-and-gates:lock::memo:Medium
287find-the-duplicate-number:memo:Medium
288unique-word-abbreviation:lock::memo:Medium
289game-of-life:memo:Medium
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-tree:memo:Hard
298binary-tree-longest-consecutive-sequence:lock::memo:Medium
299bulls-and-cowsEasy
300longest-increasing-subsequence:memo:Medium
301remove-invalid-parentheses:memo:Hard
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-balloons:memo:Hard
313super-ugly-numberPythonMedium
314binary-tree-vertical-order-traversal:lock:Medium
315count-of-smaller-numbers-after-selfHard
316remove-duplicate-letters:memo:Hard
317shortest-distance-from-all-buildings:lock:Hard
318maximum-product-of-word-lengths:memo:Medium
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-iiPythonMedium
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-tree:memo:Medium
332reconstruct-itineraryMedium
333largest-bst-subtree:lock:Medium
334increasing-triplet-subsequenceMedium
335self-crossingPythonHard
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::memo: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-elementsPython:memo:Medium
348design-tic-tac-toe:lock:Medium
349intersection-of-two-arrays:memo:Easy
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-integersEasy
372super-powMedium
373find-k-pairs-with-smallest-sumsMedium
374guess-number-higher-or-lower: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-allowed:memo:Hard
382linked-list-random-nodeMedium
383ransom-noteEasy
384shuffle-an-array:memo:Medium
385mini-parserMedium
386lexicographical-numbersMedium
387first-unique-character-in-a-string:memo:Easy
388longest-absolute-file-pathMedium
389find-the-differenceEasy
390elimination-gameMedium
391perfect-rectangleHard
392is-subsequenceEasy
393utf-8-validation:memo:Medium
394decode-stringMedium
395longest-substring-with-at-least-k-repeating-charactersMedium
396rotate-functionMedium
397integer-replacementMedium
398random-pick-indexMedium
399evaluate-divisionMedium
400nth-digitMedium
401binary-watchEasy
402remove-k-digitsMedium
403frog-jump:memo:Hard
404sum-of-left-leavesEasy
405convert-a-number-to-hexadecimalPythonEasy
406queue-reconstruction-by-height:memo:Medium
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-buzz:memo:Easy
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-checkerPythonHard
421maximum-xor-of-two-numbers-in-an-arrayMedium
422valid-word-square:lock:Easy
423reconstruct-original-digits-from-english:memo:Medium
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-stringPythonMedium
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-bst:memo:Medium
450delete-node-in-a-bst:memo:Medium
451sort-characters-by-frequencyMedium
452minimum-number-of-arrows-to-burst-balloons:memo:Medium
453minimum-moves-to-equal-array-elements:memo:Easy
4544sum-iiPythonMedium
455assign-cookiesPythonEasy
456132-pattern:memo:Medium
457circular-array-loopMedium
458poor-pigsPython:memo:Hard
459repeated-substring-patternEasy
460lfu-cacheHard
461hamming-distancePythonEasy
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-productHard
480sliding-window-median:memo:Hard
481magical-stringMedium
482license-key-formattingEasy
483smallest-good-baseHard
484find-permutation:lock::memo:Medium
485max-consecutive-onesPythonEasy
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-attacking:memo:Medium
496next-greater-element-i:memo:Easy
498diagonal-traverseMedium
499the-maze-iii:lock:Hard
500keyboard-rowEasy
501find-mode-in-binary-search-treeEasy
502ipo:memo:Hard
503next-greater-element-ii:memo:Medium
504base-7Easy
505the-maze-ii:lock::memo:Medium
506relative-ranksPythonEasy
507perfect-number:memo:Easy
508most-frequent-subtree-sumMedium
509inorder-successor-in-bst-ii:lock::memo:Medium
511all-paths-from-source-lead-to-destination:lock:Medium
513find-bottom-left-tree-valueMedium
514freedom-trailHard
515find-largest-value-in-each-tree-rowMedium
516longest-palindromic-subsequenceMedium
517super-washing-machines:memo:Hard
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-arrangementPython: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-covering-elements-from-k-lists: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:Medium
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:Easy
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:Easy
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:Easy
756pour-water:lock::memo:Medium
757pyramid-transition-matrix:memo:Medium
758convert-binary-search-tree-to-sorted-doubly-linked-list:lock::memo: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-treeMedium
773quad-tree-intersectionEasy
774maximum-depth-of-n-ary-tree:memo:Easy
775n-ary-tree-preorder-traversal:memo:Easy
776n-ary-tree-postorder-traversal:memo:Easy
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-tree:memo:Medium
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-search:memo:Easy
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:Hard
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::memo: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
940fruit-into-baskets:memo:Medium
941sort-array-by-parity:memo:Easy
942super-palindromes:memo:Hard
943sum-of-subarray-minimums:memo:Medium
944smallest-range-i:memo:Easy
945snakes-and-ladders:memo:Medium
946smallest-range-ii:memo:Medium
947online-election:memo:Medium
948sort-an-arrayMedium
949cat-and-mouse:memo:Hard
950x-of-a-kind-in-a-deck-of-cards:memo:Easy
951partition-array-into-disjoint-intervals:memo:Medium
952word-subsets:memo:Medium
953reverse-only-letters:memo:Easy
954maximum-sum-circular-subarray:memo:Medium
955complete-binary-tree-inserter:memo:Medium
956number-of-music-playlists:memo:Hard
957minimum-add-to-make-parentheses-valid:memo:Medium
958sort-array-by-parity-ii:memo:Easy
9593sum-with-multiplicity:memo:Medium
960minimize-malware-spread:memo:Hard
961long-pressed-name:memo:Easy
962flip-string-to-monotone-increasing:memo:Medium
963three-equal-parts:memo:Hard
964minimize-malware-spread-ii:memo:Hard
965unique-email-addresses:memo:Easy
966binary-subarrays-with-sum:memo:Medium
967minimum-falling-path-sum:memo:Medium
968beautiful-array:memo:Medium
969number-of-recent-calls:memo:Easy
971shortest-bridge:memo:Medium
972knight-dialer:memo:Medium
973stamping-the-sequence:memo:Hard
974reorder-log-files:memo:Easy
975range-sum-of-bst:memo:Easy
976minimum-area-rectangle:memo:Medium
977distinct-subsequences-ii:memo:Hard
978valid-mountain-array:memo:Easy
979di-string-match:memo:Easy
980find-the-shortest-superstring:memo:Hard
981delete-columns-to-make-sorted:memo:Easy
982minimum-increment-to-make-array-unique:memo:Medium
983validate-stack-sequences:memo:Medium
984most-stones-removed-with-same-row-or-column:memo:Medium
985bag-of-tokens:memo:Medium
986largest-time-for-given-digits:memo:Easy
987reveal-cards-in-increasing-order:memo:Medium
988flip-equivalent-binary-trees:memo:Medium
989largest-component-size-by-common-factor:memo:Hard
990verifying-an-alien-dictionary:memo:Easy
991array-of-doubled-pairs:memo:Medium
992delete-columns-to-make-sorted-ii:memo:Medium
993tallest-billboard:memo:Hard
994prison-cells-after-n-days:memo:Medium
998check-completeness-of-a-binary-tree:memo:Medium
999regions-cut-by-slashes:memo:Medium
1000delete-columns-to-make-sorted-iii:memo:Hard
1001n-repeated-element-in-size-2n-array:memo:Easy
1002maximum-width-ramp:memo:Medium
1003minimum-area-rectangle-ii:memo:Medium
1004least-operators-to-express-number:memo:Hard
1005univalued-binary-tree:memo:Easy
1006vowel-spellchecker:memo:Medium
1007numbers-with-same-consecutive-differences:memo:Medium
1008binary-tree-cameras:memo:Hard
1009pancake-sorting:memo:Medium
1010powerful-integers:memo:Easy
1011flip-binary-tree-to-match-preorder-traversal:memo:Medium
1012equal-rational-numbers:memo:Hard
1013fibonacci-number:memo:Easy
1014k-closest-points-to-origin:memo:Medium
1016subarray-sums-divisible-by-k:memo:Medium
1017odd-even-jump:memo:Hard
1018largest-perimeter-triangle:memo:Easy
1019squares-of-a-sorted-array:memo:Easy
1020longest-turbulent-subarray:memo:Medium
1021distribute-coins-in-binary-tree:memo:Medium
1022unique-paths-iii:memo:Hard
1023time-based-key-value-store:memo:Medium
1024triples-with-bitwise-and-equal-to-zeroHard
1025minimum-cost-for-tickets:memo:Medium
1026string-without-aaa-or-bbb:memo:Medium
1027sum-of-even-numbers-after-queries:memo:Easy
1028interval-list-intersections:memo:Medium
1029vertical-order-traversal-of-a-binary-tree:memo:Medium
1030smallest-string-starting-from-leaf:memo:Medium
1031add-to-array-form-of-integer:memo:Easy
1032satisfiability-of-equality-equations:memo:Medium
1033broken-calculator:memo:Medium
1034subarrays-with-k-different-integers:memo:Hard
1035cousins-in-binary-tree:memo:Easy
1036rotting-oranges:memo:Easy
1037minimum-number-of-k-consecutive-bit-flips:memo:Hard
1038number-of-squareful-arrays:memo:Hard
1039find-the-town-judgeEasy
1040maximum-binary-tree-iiMedium
1041available-captures-for-rookEasy
1042minimum-cost-to-merge-stonesHard
1043grid-illuminationHard
1044find-common-charactersEasy
1045check-if-word-is-valid-after-substitutionsMedium
1046max-consecutive-ones-iiiMedium
1047maximize-sum-of-array-after-k-negationsEasy
1048clumsy-factorialMedium
1049minimum-domino-rotations-for-equal-row:memo:Medium
1050construct-binary-search-tree-from-preorder-traversal:memo:Medium
1051shortest-way-to-form-string:lock:Medium
1052campus-bikes:lock:Medium
1053minimize-rounding-error-to-meet-target:lock:Medium
1054complement-of-base-10-integerEasy
1055pairs-of-songs-with-total-durations-divisible-by-60Easy
1056capacity-to-ship-packages-within-d-daysMedium
1057numbers-with-repeated-digitsHard
1058lexicographically-smallest-equivalent-string:lock:Medium
1059missing-element-in-sorted-array:lock::memo:Medium
1060longest-repeating-substring:lock::memo:Medium
1061number-of-valid-subarrays:lock:Hard
1062partition-array-into-three-parts-with-equal-sumEasy
1063best-sightseeing-pairMedium
1064smallest-integer-divisible-by-kMedium
1065binary-string-with-substrings-representing-1-to-nPythonMedium
1066fixed-point:lock:Easy
1067campus-bikes-ii:lock:Medium
1068digit-count-in-range:lock:Hard
1069confusing-number:lock:Easy
1070convert-to-base-2Medium
1071binary-prefix-divisible-by-5Easy
1072next-greater-node-in-linked-listMedium
1073number-of-enclavesMedium
1074high-five:lock:Easy
1075index-pairs-of-a-string:lock:Easy
1076brace-expansion:lock:Medium
1077confusing-number-ii:lock:Hard
1078remove-outermost-parenthesesEasy
1079sum-of-root-to-leaf-binary-numbersEasy
1080camelcase-matchingMedium
1081video-stitchingMedium
1082sum-of-digits-in-the-minimum-number:lock:Easy
1083two-sum-less-than-k:lock:Easy
1084find-k-length-substrings-with-no-repeated-characters:lock:Medium
1085the-earliest-moment-when-everyone-become-friends:lock:Medium
1086divisor-gameEasy
1087longest-arithmetic-sequenceMedium
1088number-of-days-in-a-month:lock:Easy
1089remove-vowels-from-a-string:lock:Easy
1090armstrong-number:lock:Easy
1091maximum-average-subtree:lock:Medium
1092maximum-difference-between-node-and-ancestorMedium
1093recover-a-tree-from-preorder-traversalHard
1094matrix-cells-in-distance-orderEasy
1095two-city-scheduling:memo:Easy
1096maximum-sum-of-two-non-overlapping-subarraysMedium
1097stream-of-charactersHard
1098largest-unique-number:lock:Easy
1099path-with-maximum-minimum-value:lock:Medium
1100connecting-cities-with-minimum-cost:lock:Medium
1101parallel-courses:lock:Hard
1102check-if-a-number-is-majority-element-in-a-sorted-array:lock:Easy
1103moving-stones-until-consecutiveEasy
1104coloring-a-borderMedium
1105uncrossed-linesMedium
1106escape-a-large-mazeHard
1107minimum-swaps-to-group-all-1s-together:lock:Medium
1108analyze-user-website-visit-pattern:lock:Medium
1111minimum-score-triangulation-of-polygonMedium
1112find-words-that-can-be-formed-by-charactersEasy
1113moving-stones-until-consecutive-iiMedium
1114binary-search-tree-to-greater-sum-treeMedium
1115valid-boomerangEasy
1116maximum-level-sum-of-a-binary-treeMedium
1117as-far-from-land-as-possibleMedium
1118divide-array-into-increasing-sequences:lock:Hard
1119robot-bounded-in-circleMedium
1120flower-planting-with-no-adjacentEasy
1121partition-array-for-maximum-sumMedium
1122longest-duplicate-substring:memo:Hard
1124string-transforms-into-another-string:lock:Hard
1127last-stone-weightEasy
1128remove-all-adjacent-duplicates-in-string:memo:Easy
1129longest-string-chainMedium
1130last-stone-weight-iiMedium
1133last-substring-in-lexicographical-orderHard
1137height-checkerEasy
1138grumpy-bookstore-ownerMedium
1139previous-permutation-with-one-swapMedium
1140distant-barcodesMedium
1145number-of-submatrices-that-sum-to-targetHard
1146greatest-common-divisor-of-stringsEasy
1147flip-columns-for-maximum-number-of-equal-rowsMedium
1148adding-two-negabinary-numbersMedium
1156occurrences-after-bigramEasy
1157insufficient-nodes-in-root-to-leaf-pathsMedium
1159smallest-subsequence-of-distinct-charactersMedium
1160letter-tile-possibilitiesMedium
1168duplicate-zerosEasy
1169largest-values-from-labelsMedium
1170shortest-common-supersequenceHard
1171shortest-path-in-binary-matrixMedium
1183statistics-from-a-large-sampleMedium
1184car-poolingMedium
1185find-in-mountain-arrayHard
1188brace-expansion-iiHard
1194path-in-zigzag-labelled-binary-treeMedium
1195distribute-candies-to-people:memo:Easy
1196filling-bookcase-shelvesMedium
1197parsing-a-boolean-expressionHard
1205defanging-an-ip-addressEasy
1206corporate-flight-bookingsMedium
1207delete-nodes-and-return-forestMedium
1208maximum-nesting-depth-of-two-valid-parentheses-stringsMedium
1217relative-sort-arrayEasy
1218lowest-common-ancestor-of-deepest-leavesMedium
1219longest-well-performing-intervalMedium
1220smallest-sufficient-teamHard
1227number-of-equivalent-domino-pairsEasy
1228minimum-cost-tree-from-leaf-valuesMedium
1229shortest-path-with-alternating-colorsMedium
1230maximum-of-absolute-value-expressionMedium
1236n-th-tribonacci-number:memo:Easy
1238alphabet-board-pathMedium
1239largest-1-bordered-squareMedium
1240stone-game-iiMedium
1247decrease-elements-to-make-array-zigzagMedium
1248binary-tree-coloring-gameMedium
1249snapshot-arrayMedium
1250longest-common-subsequenceMedium
1251longest-chunked-palindrome-decompositionHard
1260day-of-the-yearEasy
1261swap-for-longest-repeated-character-substringMedium
1262online-majority-element-in-subarrayHard
1263number-of-dice-rolls-with-target-sumMedium