Directories ¶ Show internal Collapse all Path Synopsis 0001.two-sum 0002.add-two-numbers 0003.longest-substring-without-repeating-characters 0004.median-of-two-sorted-arrays 0005.longest-palindromic-substring 0006.zigzag-conversion 0007.reverse-integer 0008.string-to-integer-atoi 0009.palindrome-number 0010.regular-expression-matching 0011.container-with-most-water 0012.integer-to-roman 0013.roman-to-integer 0014.longest-common-prefix 0015.3sum 0016.3sum-closest 0017.letter-combinations-of-a-phone-number 0018.4sum 0019.remove-nth-node-from-end-of-list 0020.valid-parentheses 0021.merge-two-sorted-lists 0022.generate-parentheses 0023.merge-k-sorted-lists 0024.swap-nodes-in-pairs 0025.reverse-nodes-in-k-group 0026.remove-duplicates-from-sorted-array 0027.remove-element 0028.implement-strstr 0029.divide-two-integers 0030.substring-with-concatenation-of-all-words 0031.next-permutation 0032.longest-valid-parentheses 0033.search-in-rotated-sorted-array 0034.search-for-a-range 0035.search-insert-position 0036.valid-sudoku 0037.sudoku-solver 0038.count-and-say 0039.combination-sum 0040.combination-sum-ii 0041.first-missing-positive 0042.trapping-rain-water 0043.multiply-strings 0044.wildcard-matching 0045.jump-game-ii 0046.permutations 0047.permutations-ii 0048.rotate-image 0049.group-anagrams 0050.powx-n 0051.n-queens 0052.n-queens-ii 0053.maximum-subarray 0054.spiral-matrix 0055.jump-game 0056.merge-intervals 0057.insert-interval 0058.length-of-last-word 0059.spiral-matrix-ii 0060.permutation-sequence 0061.rotate-list 0062.unique-paths 0063.unique-paths-ii 0064.minimum-path-sum 0065.valid-number 0066.plus-one 0067.add-binary 0068.text-justification 0069.sqrtx 0070.climbing-stairs 0071.simplify-path 0072.edit-distance 0073.set-matrix-zeroes 0074.search-a-2d-matrix 0075.sort-colors 0076.minimum-window-substring 0077.combinations 0078.subsets 0079.word-search 0080.remove-duplicates-from-sorted-array-ii 0081.search-in-rotated-sorted-array-ii 0082.remove-duplicates-from-sorted-list-ii 0083.remove-duplicates-from-sorted-list 0084.largest-rectangle-in-histogram 0085.maximal-rectangle 0086.partition-list 0087.scramble-string 0088.merge-sorted-array 0089.gray-code 0090.subsets-ii 0091.decode-ways 0092.reverse-linked-list-ii 0093.restore-ip-addresses 0094.binary-tree-inorder-traversal 0095.unique-binary-search-trees-ii 0096.unique-binary-search-trees 0097.interleaving-string 0098.validate-binary-search-tree 0099.recover-binary-search-tree 0100.same-tree 0101.symmetric-tree 0102.binary-tree-level-order-traversal 0103.binary-tree-zigzag-level-order-traversal 0104.maximum-depth-of-binary-tree 0105.construct-binary-tree-from-preorder-and-inorder-traversal 0106.construct-binary-tree-from-inorder-and-postorder-traversal 0107.binary-tree-level-order-traversal-ii 0108.convert-sorted-array-to-binary-search-tree 0109.convert-sorted-list-to-binary-search-tree 0110.balanced-binary-tree 0111.minimum-depth-of-binary-tree 0112.path-sum 0113.path-sum-ii 0114.flatten-binary-tree-to-linked-list 0115.distinct-subsequences 0118.pascals-triangle 0119.pascals-triangle-ii 0120.triangle 0121.best-time-to-buy-and-sell-stock 0122.best-time-to-buy-and-sell-stock-ii 0123.best-time-to-buy-and-sell-stock-iii 0124.binary-tree-maximum-path-sum 0125.valid-palindrome 0126.word-ladder-ii 0127.word-ladder 0128.longest-consecutive-sequence 0129.sum-root-to-leaf-numbers 0130.surrounded-regions 0131.palindrome-partitioning 0132.palindrome-partitioning-ii 0134.gas-station 0135.candy 0136.single-number 0137.single-number-ii 0139.word-break 0140.word-break-ii 0143.reorder-list 0144.binary-tree-preorder-traversal 0145.binary-tree-postorder-traversal 0146.lru-cache 0147.insertion-sort-list 0148.sort-list 0149.max-points-on-a-line 0150.evaluate-reverse-polish-notation 0152.maximum-product-subarray 0153.find-minimum-in-rotated-sorted-array 0154.find-minimum-in-rotated-sorted-array-ii 0155.min-stack 0162.find-peak-element 0164.maximum-gap 0165.compare-version-numbers 0166.fraction-to-recurring-decimal 0167.two-sum-ii-input-array-is-sorted 0168.excel-sheet-column-title 0169.majority-element 0171.excel-sheet-column-number 0172.factorial-trailing-zeroes 0174.dungeon-game 0179.largest-number 0187.repeated-dna-sequences 0188.best-time-to-buy-and-sell-stock-iv 0189.rotate-array 0198.house-robber 0199.binary-tree-right-side-view 0200.number-of-islands 0201.bitwise-and-of-numbers-range 0202.happy-number 0203.remove-linked-list-elements 0204.count-primes 0205.isomorphic-strings 0206.reverse-linked-list 0207.course-schedule 0208.implement-trie-prefix-tree 0209.minimum-size-subarray-sum 0210.course-schedule-ii 0211.add-and-search-word-data-structure-design 0212.word-search-ii 0213.house-robber-ii 0214.shortest-palindrome 0215.kth-largest-element-in-an-array 0216.combination-sum-iii 0217.contains-duplicate 0218.the-skyline-problem 0219.contains-duplicate-ii 0220.contains-duplicate-iii 0221.maximal-square 0223.rectangle-area 0224.basic-calculator 0225.implement-stack-using-queues 0226.invert-binary-tree 0227.basic-calculator-ii 0228.summary-ranges 0229.majority-element-ii 0230.kth-smallest-element-in-a-bst 0231.power-of-two 0232.implement-queue-using-stacks 0233.number-of-digit-one 0234.palindrome-linked-list 0238.product-of-array-except-self 0239.sliding-window-maximum 0240.search-a-2d-matrix-ii 0241.different-ways-to-add-parentheses 0242.valid-anagram 0257.binary-tree-paths 0258.add-digits 0260.single-number-iii 0263.ugly-number 0264.ugly-number-ii 0268.missing-number 0273.integer-to-english-words 0274.h-index 0275.h-index-ii 0279.perfect-squares 0282.expression-add-operators 0283.move-zeroes 0287.find-the-duplicate-number 0289.game-of-life 0290.word-pattern 0292.nim-game 0295.find-median-from-data-stream 0299.bulls-and-cows 0300.longest-increasing-subsequence 0301.remove-invalid-parentheses 0303.range-sum-query-immutable 0304.range-sum-query-2d-immutable 0306.additive-number 0307.range-sum-query-mutable 0309.best-time-to-buy-and-sell-stock-with-cooldown 0310.minimum-height-trees 0312.burst-balloons 0313.super-ugly-number 0315.count-of-smaller-numbers-after-self 0316.remove-duplicate-letters 0318.maximum-product-of-word-lengths 0319.bulb-switcher 0321.create-maximum-number 0322.coin-change 0324.wiggle-sort-ii 0326.power-of-three 0327.count-of-range-sum 0328.odd-even-linked-list 0329.longest-increasing-path-in-a-matrix 0330.patching-array 0331.verify-preorder-serialization-of-a-binary-tree 0332.reconstruct-itinerary 0334.increasing-triplet-subsequence 0335.self-crossing 0336.palindrome-pairs 0337.house-robber-iii 0338.counting-bits 0342.power-of-four 0343.integer-break 0344.reverse-string 0345.reverse-vowels-of-a-string 0347.top-k-frequent-elements 0349.intersection-of-two-arrays 0350.intersection-of-two-arrays-ii 0352.data-stream-as-disjoint-intervals 0354.russian-doll-envelopes 0355.design-twitter 0357.count-numbers-with-unique-digits 0363.max-sum-of-rectangle-no-larger-than-k 0365.water-and-jug-problem 0367.valid-perfect-square 0368.largest-divisible-subset 0371.sum-of-two-integers 0372.super-pow 0373.find-k-pairs-with-smallest-sums 0375.guess-number-higher-or-lower-ii 0376.wiggle-subsequence 0377.combination-sum-iv 0378.kth-smallest-element-in-a-sorted-matrix 0380.insert-delete-getrandom-o1 0381.insert-delete-getrandom-o1-duplicates-allowed 0382.linked-list-random-node 0383.ransom-note 0384.shuffle-an-array 0385.mini-parser 0387.first-unique-character-in-a-string 0388.longest-absolute-file-path 0389.find-the-difference 0390.elimination-game 0391.perfect-rectangle 0392.is-subsequence 0393.utf-8-validation 0394.decode-string 0395.longest-substring-with-at-least-k-repeating-characters 0396.rotate-function 0397.integer-replacement 0398.random-pick-index 0399.evaluate-division 0400.nth-digit 0401.binary-watch 0402.remove-k-digits 0403.frog-jump 0404.sum-of-left-leaves 0405.convert-a-number-to-hexadecimal 0406.queue-reconstruction-by-height 0407.trapping-rain-water-ii 0409.longest-palindrome 0410.split-array-largest-sum 0412.fizz-buzz 0413.arithmetic-slices 0414.third-maximum-number 0415.add-strings 0416.partition-equal-subset-sum 0417.pacific-atlantic-water-flow 0419.battleships-in-a-board 0420.strong-password-checker 0421.maximum-xor-of-two-numbers-in-an-array 0423.reconstruct-original-digits-from-english 0424.longest-repeating-character-replacement 0432.all-oone-data-structure 0434.number-of-segments-in-a-string 0435.non-overlapping-intervals 0436.find-right-interval 0437.path-sum-iii 0438.find-all-anagrams-in-a-string 0440.k-th-smallest-in-lexicographical-order 0441.arranging-coins 0442.find-all-duplicates-in-an-array 0443.string-compression 0445.add-two-numbers-ii 0446.arithmetic-slices-ii-subsequence 0447.number-of-boomerangs 0448.find-all-numbers-disappeared-in-an-array 0450.delete-node-in-a-bst 0451.sort-characters-by-frequency 0452.minimum-number-of-arrows-to-burst-balloons 0453.minimum-moves-to-equal-array-elements 0454.4sum-ii 0455.assign-cookies 0456.132-pattern 0459.repeated-substring-pattern 0460.lfu-cache 0461.hamming-distance 0462.minimum-moves-to-equal-array-elements-ii 0463.island-perimeter 0464.can-i-win 0466.count-the-repetitions 0467.unique-substrings-in-wraparound-string 0468.validate-ip-address 0472.concatenated-words 0473.matchsticks-to-square 0474.ones-and-zeroes 0475.heaters 0476.number-complement 0477.total-hamming-distance 0479.largest-palindrome-product 0480.sliding-window-median 0481.magical-string 0482.license-key-formatting 0483.smallest-good-base 0485.max-consecutive-ones 0486.predict-the-winner 0488.zuma-game 0491.increasing-subsequences 0492.construct-the-rectangle 0493.reverse-pairs 0494.target-sum 0495.teemo-attacking 0496.next-greater-element-i 0498.diagonal-traverse 0500.keyboard-row 0501.find-mode-in-binary-search-tree 0502.ipo 0503.next-greater-element-ii 0504.base-7 0506.relative-ranks 0507.perfect-number 0508.most-frequent-subtree-sum 0513.find-bottom-left-tree-value 0514.freedom-trail 0515.find-largest-value-in-each-tree-row 0516.longest-palindromic-subsequence 0517.super-washing-machines 0520.detect-capital 0521.longest-uncommon-subsequence-i 0522.longest-uncommon-subsequence-ii 0523.continuous-subarray-sum 0524.longest-word-in-dictionary-through-deleting 0525.contiguous-array 0526.beautiful-arrangement 0529.minesweeper 0530.minimum-absolute-difference-in-bst 0532.k-diff-pairs-in-an-array 0537.complex-number-multiplication 0538.convert-bst-to-greater-tree 0539.minimum-time-difference 0540.single-element-in-a-sorted-array 0541.reverse-string-ii 0542.01-matrix 0543.diameter-of-binary-tree 0546.remove-boxes 0547.friend-circles 0551.student-attendance-record-i 0552.student-attendance-record-ii 0553.optimal-division 0554.brick-wall 0556.next-greater-element-iii 0557.reverse-words-in-a-string-iii 0560.subarray-sum-equals-k 0561.array-partition-i 0563.binary-tree-tilt 0564.find-the-closest-palindrome 0565.array-nesting 0566.reshape-the-matrix 0567.permutation-in-string 0572.subtree-of-another-tree 0575.distribute-candies 0576.out-of-boundary-paths 0581.shortest-unsorted-continuous-subarray 0583.delete-operation-for-two-strings 0587.erect-the-fence 0591.tag-validator 0592.fraction-addition-and-subtraction 0593.valid-square 0594.longest-harmonious-subsequence 0598.range-addition-ii 0599.minimum-index-sum-of-two-lists 0600.non-negative-integers-without-consecutive-ones 0605.can-place-flowers 0606.construct-string-from-binary-tree 0609.find-duplicate-file-in-system 0611.valid-triangle-number 0617.merge-two-binary-trees 0621.task-scheduler 0623.add-one-row-to-tree 0628.maximum-product-of-three-numbers 0629.k-inverse-pairs-array 0630.course-schedule-iii 0632.smallest-range 0633.sum-of-square-numbers 0636.exclusive-time-of-functions 0637.average-of-levels-in-binary-tree 0638.shopping-offers 0639.decode-ways-ii 0640.solve-the-equation 0643.maximum-average-subarray-i 0645.set-mismatch 0646.maximum-length-of-pair-chain 0647.palindromic-substrings 0648.replace-words 0649.dota2-senate 0650.2-keys-keyboard 0652.find-duplicate-subtrees 0653.two-sum-iv-input-is-a-bst 0654.maximum-binary-tree 0655.print-binary-tree 0657.judge-route-circle 0658.find-k-closest-elements 0659.split-array-into-consecutive-subsequences 0660.remove-9 0661.image-smoother 0662.maximum-width-of-binary-tree 0664.strange-printer 0665.non-decreasing-array 0667.beautiful-arrangement-ii 0668.kth-smallest-number-in-multiplication-table 0669.trim-a-binary-search-tree 0670.maximum-swap 0671.second-minimum-node-in-a-binary-tree 0672.bulb-switcher-ii 0673.number-of-longest-increasing-subsequence 0674.longest-continuous-increasing-subsequence 0675.cut-off-trees-for-golf-event 0676.implement-magic-dictionary 0677.map-sum-pairs 0678.valid-parenthesis-string 0679.24-game 0680.valid-palindrome-ii 0682.baseball-game 0684.redundant-connection 0685.redundant-connection-ii 0686.repeated-string-match 0687.longest-univalue-path 0688.knight-probability-in-chessboard 0689.maximum-sum-of-3-non-overlapping-subarrays 0691.stickers-to-spell-word 0692.top-k-frequent-words 0693.binary-number-with-alternating-bits 0695.max-area-of-island 0696.count-binary-substrings 0697.degree-of-an-array 0698.partition-to-k-equal-sum-subsets 0699.falling-squares 0712.minimum-ascii-delete-sum-for-two-strings 0713.subarray-product-less-than-k 0714.best-time-to-buy-and-sell-stock-with-transaction-fee 0715.range-module 0717.1-bit-and-2-bit-characters 0718.maximum-length-of-repeated-subarray 0719.find-k-th-smallest-pair-distance 0720.longest-word-in-dictionary 0721.accounts-merge 0722.remove-comments 0724.find-pivot-index 0725.split-linked-list-in-parts 0726.number-of-atoms 0728.self-dividing-numbers 0729.my-calendar-i 0730.count-different-palindromic-subsequences 0731.my-calendar-ii 0732.my-calendar-iii 0733.flood-fill 0735.asteroid-collision 0736.parse-lisp-expression 0738.monotone-increasing-digits 0739.daily-temperatures 0740.delete-and-earn 0741.cherry-pickup 0744.network-delay-time 0745.find-smallest-letter-greater-than-target 0746.prefix-and-suffix-search 0747.min-cost-climbing-stairs 0748.largest-number-at-least-twice-of-others 0749.shortest-completing-word 0750.contain-virus 0753.open-the-lock 0754.cracking-the-safe 0755.reach-a-number 0756.pour-water 0757.pyramid-transition-matrix 0759.set-intersection-size-at-least-two Click to show internal directories. Click to hide internal directories.