Directories ¶ Show internal Expand 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 0141.linked-list-cycle 0142.linked-list-cycle-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 0160.intersection-of-two-linked-lists 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 0173.binary-search-tree-iterator 0174.dungeon-game 0179.largest-number 0187.repeated-dna-sequences 0188.best-time-to-buy-and-sell-stock-iv 0189.rotate-array 0190.reverse-bits 0191.number-of-1-bits 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 0222.count-complete-tree-nodes 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 0235.lowest-common-ancestor-of-a-binary-search-tree 0236.lowest-common-ancestor-of-a-binary-tree 0237.delete-node-in-a-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 0386.lexicographical-numbers 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 0433.minimum-genetic-mutation 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 0457.circular-array-loop 0458.poor-pigs 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 0470.implement-rand10-using-rand7 0472.concatenated-words 0473.matchsticks-to-square 0474.ones-and-zeroes 0475.heaters 0476.number-complement 0477.total-hamming-distance 0478.generate-random-point-in-a-circle 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 0497.random-point-in-non-overlapping-rectangles 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 0509.fibonacci-number 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 0518.coin-change-2 0519.random-flip-matrix 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 0528.random-pick-with-weight 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 0622.design-circular-queue 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 0641.design-circular-deque 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 0700.search-in-a-binary-search-tree 0701.insert-into-a-binary-search-tree 0703.kth-largest-element-in-a-stream 0704.binary-search 0705.design-hashset 0706.design-hashmap 0707.design-linked-list 0709.to-lower-case 0710.random-pick-with-blacklist 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 0743.network-delay-time 0744.find-smallest-letter-greater-than-target 0745.prefix-and-suffix-search 0746.min-cost-climbing-stairs 0747.largest-number-at-least-twice-of-others 0748.shortest-completing-word 0749.contain-virus 0752.open-the-lock 0753.cracking-the-safe 0754.reach-a-number 0756.pour-water 0756.pyramid-transition-matrix 0757.set-intersection-size-at-least-two 0761.special-binary-string 0762.find-anagram-mappings 0762.prime-number-of-set-bits-in-binary-representation 0763.partition-labels 0764.largest-plus-sign 0765.couples-holding-hands 0766.toeplitz-matrix 0767.reorganize-string 0768.max-chunks-to-make-sorted-ii 0769.max-chunks-to-make-sorted 0770.basic-calculator-iv 0771.jewels-and-stones 0773.sliding-puzzle 0775.global-and-local-inversions 0777.swap-adjacent-in-lr-string 0778.swim-in-rising-water 0779.k-th-symbol-in-grammar 0780.reaching-points 0781.rabbits-in-forest 0782.transform-to-chessboard 0783.minimum-distance-between-bst-nodes 0784.letter-case-permutation 0785.is-graph-bipartite 0786.k-th-smallest-prime-fraction 0787.cheapest-flights-within-k-stops 0788.rotated-digits 0789.escape-the-ghosts 0790.domino-and-tromino-tiling 0791.custom-sort-string 0792.number-of-matching-subsequences 0793.preimage-size-of-factorial-zeroes-function 0794.valid-tic-tac-toe-state 0795.number-of-subarrays-with-bounded-maximum 0796.rotate-string 0797.all-paths-from-source-to-target 0798.smallest-rotation-with-highest-score 0799.champagne-tower 0801.minimum-swaps-to-make-sequences-increasing 0802.find-eventual-safe-states 0803.bricks-falling-when-hit 0804.unique-morse-code-words 0805.split-array-with-same-average 0806.number-of-lines-to-write-string 0807.max-increase-to-keep-city-skyline 0808.soup-servings 0809.expressive-words 0810.chalkboard-xor-game 0811.subdomain-visit-count 0812.largest-triangle-area 0813.largest-sum-of-averages 0814.binary-tree-pruning 0815.bus-routes 0816.ambiguous-coordinates 0817.linked-list-components 0818.race-car 0819.most-common-word 0820.short-encoding-of-words 0821.shortest-distance-to-a-character 0822.card-flipping-game 0823.binary-trees-with-factors 0824.goat-latin 0825.friends-of-appropriate-ages 0826.most-profit-assigning-work 0827.making-a-large-island 0828.unique-letter-string 0829.consecutive-numbers-sum 0830.positions-of-large-groups 0831.masking-personal-information 0832.flipping-an-image 0833.find-and-replace-in-string 0834.sum-of-distances-in-tree 0835.image-overlap 0836.rectangle-overlap 0837.new-21-game 0838.push-dominoes 0839.similar-string-groups 0840.magic-squares-in-grid 0841.keys-and-rooms 0842.split-array-into-fibonacci-sequence 0843.guess-the-word 0844.backspace-string-compare 0845.longest-mountain-in-array 0846.hand-of-straights 0847.shortest-path-visiting-all-nodes 0848.shifting-letters 0849.maximize-distance-to-closest-person 0850.rectangle-area-ii 0851.loud-and-rich 0852.peak-index-in-a-mountain-array 0853.car-fleet 0854.k-similar-strings 0855.exam-room 0856.score-of-parentheses 0857.minimum-cost-to-hire-k-workers 0858.mirror-reflection 0859.buddy-strings 0860.lemonade-change 0861.score-after-flipping-matrix 0862.shortest-subarray-with-sum-at-least-k 0863.all-nodes-distance-k-in-binary-tree 0864.shortest-path-to-get-all-keys 0865.smallest-subtree-with-all-the-deepest-nodes 0866.prime-palindrome 0867.transpose-matrix 0868.binary-gap 0869.reordered-power-of-2 0870.advantage-shuffle 0871.minimum-number-of-refueling-stops 0872.leaf-similar-trees 0873.length-of-longest-fibonacci-subsequence 0874.walking-robot-simulation 0875.koko-eating-bananas 0876.middle-of-the-linked-list 0877.stone-game 0878.nth-magical-number 0879.profitable-schemes 0880.decoded-string-at-index 0881.boats-to-save-people 0882.reachable-nodes-in-subdivided-graph 0883.projection-area-of-3d-shapes 0884.uncommon-words-from-two-sentences 0885.spiral-matrix-iii 0886.possible-bipartition 0887.super-egg-drop 0888.fair-candy-swap 0889.construct-binary-tree-from-preorder-and-postorder-traversal 0890.find-and-replace-pattern 0891.sum-of-subsequence-widths 0892.surface-area-of-3d-shapes 0893.groups-of-special-equivalent-strings 0894.all-possible-full-binary-trees 0895.maximum-frequency-stack 0896.monotonic-array 0897.increasing-order-search-tree 0898.bitwise-ors-of-subarrays 0899.orderly-queue 0900.rle-iterator 0901.online-stock-span 0902.numbers-at-most-n-given-digit-set 0903.valid-permutations-for-di-sequence 0904.fruit-into-baskets 0905.sort-array-by-parity 0906.super-palindromes 0907.sum-of-subarray-minimums 0908.smallest-range-i 0909.snakes-and-ladders 0910.smallest-range-ii 0911.online-election 0912.sort-an-array 0913.cat-and-mouse 0914.x-of-a-kind-in-a-deck-of-cards 0915.partition-array-into-disjoint-intervals 0916.word-subsets 0917.reverse-only-letters 0918.maximum-sum-circular-subarray 0919.complete-binary-tree-inserter 0920.number-of-music-playlists 0921.minimum-add-to-make-parentheses-valid 0922.sort-array-by-parity-ii 0923.3sum-with-multiplicity 0924.minimize-malware-spread 0925.long-pressed-name 0926.flip-string-to-monotone-increasing 0927.three-equal-parts 0928.minimize-malware-spread-ii 0929.unique-email-addresses 0930.binary-subarrays-with-sum 0931.minimum-falling-path-sum 0932.beautiful-array 0933.number-of-recent-calls 0934.shortest-bridge 0935.knight-dialer 0936.stamping-the-sequence 0937.reorder-log-files 0938.range-sum-of-bst 0939.minimum-area-rectangle 0940.distinct-subsequences-ii 0941.valid-mountain-array 0942.di-string-match 0943.find-the-shortest-superstring 0944.delete-columns-to-make-sorted 0945.minimum-increment-to-make-array-unique 0946.validate-stack-sequences 0947.most-stones-removed-with-same-row-or-column 0948.bag-of-tokens 0949.largest-time-for-given-digits 0950.reveal-cards-in-increasing-order 0951.flip-equivalent-binary-trees 0952.largest-component-size-by-common-factor 0953.verifying-an-alien-dictionary 0954.array-of-doubled-pairs 0955.delete-columns-to-make-sorted-ii 0956.tallest-billboard 0957.prison-cells-after-n-days 0958.check-completeness-of-a-binary-tree 0959.regions-cut-by-slashes 0960.delete-columns-to-make-sorted-iii 0961.n-repeated-element-in-size-2n-array 0962.maximum-width-ramp 0963.minimum-area-rectangle-ii 0964.least-operators-to-express-number 0965.univalued-binary-tree 0966.vowel-spellchecker 0967.numbers-with-same-consecutive-differences 0968.binary-tree-cameras 0969.pancake-sorting 0970.powerful-integers 0971.flip-binary-tree-to-match-preorder-traversal 0972.equal-rational-numbers 0973.k-closest-points-to-origin 0974.subarray-sums-divisible-by-k 0975.odd-even-jump 0976.largest-perimeter-triangle 0977.squares-of-a-sorted-array 0978.longest-turbulent-subarray 0979.distribute-coins-in-binary-tree 0980.unique-paths-iii 0981.time-based-key-value-store 0982.triples-with-bitwise-and-equal-to-zero 0983.minimum-cost-for-tickets 0984.string-without-aaa-or-bbb 0985.sum-of-even-numbers-after-queries 0986.interval-list-intersections 0987.vertical-order-traversal-of-a-binary-tree 0988.smallest-string-starting-from-leaf 0989.add-to-array-form-of-integer 0990.satisfiability-of-equality-equations 0991.broken-calculator 0992.subarrays-with-k-different-integers 0993.cousins-in-binary-tree 0994.rotting-oranges 0995.minimum-number-of-k-consecutive-bit-flips 0996.number-of-squareful-arrays 0997.find-the-town-judge 0998.maximum-binary-tree-ii 0999.available-captures-for-rook 1000.minimum-cost-to-merge-stones 1001.grid-illumination 1002.find-common-characters 1003.check-if-word-is-valid-after-substitutions 1004.max-consecutive-ones-iii 1005.maximize-sum-of-array-after-k-negations 1006.clumsy-factorial 1007.minimum-domino-rotations-for-equal-row 1008.construct-binary-search-tree-from-preorder-traversal 1009.complement-of-base-10-integer 1010.pairs-of-songs-with-total-durations-divisible-by-60 1011.capacity-to-ship-packages-within-d-days 1012.numbers-with-repeated-digits 1013.partition-array-into-three-parts-with-equal-sum 1014.best-sightseeing-pair 1015.smallest-integer-divisible-by-k 1016.binary-string-with-substrings-representing-1-to-n 1017.convert-to-base-2 1018.binary-prefix-divisible-by-5 1019.next-greater-node-in-linked-list 1020.number-of-enclaves 1021.remove-outermost-parentheses 1022.sum-of-root-to-leaf-binary-numbers 1023.camelcase-matching 1024.video-stitching 1025.divisor-game 1026.maximum-difference-between-node-and-ancestor 1027.longest-arithmetic-sequence 1028.recover-a-tree-from-preorder-traversal 1029.two-city-scheduling 1030.matrix-cells-in-distance-order 1031.maximum-sum-of-two-non-overlapping-subarrays 1032.stream-of-characters 1033.moving-stones-until-consecutive 1034.coloring-a-border 1035.uncrossed-lines 1036.escape-a-large-maze 1037.valid-boomerang 1038.binary-search-tree-to-greater-sum-tree 1039.minimum-score-triangulation-of-polygon 1040.moving-stones-until-consecutive-ii 1041.robot-bounded-in-circle 1042.flower-planting-with-no-adjacent 1043.partition-array-for-maximum-sum 1044.longest-duplicate-substring 1046.last-stone-weight 1047.remove-all-adjacent-duplicates-in-string 1048.longest-string-chain 1049.last-stone-weight-ii 1051.height-checker 1052.grumpy-bookstore-owner 1053.previous-permutation-with-one-swap 1054.distant-barcodes 1071.greatest-common-divisor-of-strings 1072.flip-columns-for-maximum-number-of-equal-rows 1073.adding-two-negabinary-numbers 1074.number-of-submatrices-that-sum-to-target 1078.occurrences-after-bigram 1079.letter-tile-possibilities 1080.insufficient-nodes-in-root-to-leaf-paths 1081.smallest-subsequence-of-distinct-characters 1089.duplicate-zeros 1090.largest-values-from-labels 1091.shortest-path-in-binary-matrix 1092.shortest-common-supersequence 1093.statistics-from-a-large-sample 1094.car-pooling 1095.find-in-mountain-array 1096.brace-expansion-ii 1103.distribute-candies-to-people 1104.path-in-zigzag-labelled-binary-tree 1105.filling-bookcase-shelves 1106.parsing-a-boolean-expression 1108.defanging-an-ip-address 1109.corporate-flight-bookings 1110.delete-nodes-and-return-forest 1111.maximum-nesting-depth-of-two-valid-parentheses-strings 1122.relative-sort-array 1123.lowest-common-ancestor-of-deepest-leaves 1124.longest-well-performing-interval 1125.smallest-sufficient-team 1128.number-of-equivalent-domino-pairs 1129.shortest-path-with-alternating-colors 1130.minimum-cost-tree-from-leaf-values 1131.maximum-of-absolute-value-expression 1137.n-th-tribonacci-number 1138.alphabet-board-path 1139.largest-1-bordered-square 1140.stone-game-ii 1143.longest-common-subsequence 1144.decrease-elements-to-make-array-zigzag 1145.binary-tree-coloring-game 1146.snapshot-array 1147.longest-chunked-palindrome-decomposition 1154.day-of-the-year 1155.number-of-dice-rolls-with-target-sum 1156.swap-for-longest-repeated-character-substring 1157.online-majority-element-in-subarray 1160.find-words-that-can-be-formed-by-characters 1161.maximum-level-sum-of-a-binary-tree 1162.as-far-from-land-as-possible 1163.last-substring-in-lexicographical-order 1169.invalid-transactions 1170.compare-strings-by-frequency-of-the-smallest-character 1171.remove-zero-sum-consecutive-nodes-from-linked-list 1172.dinner-plate-stacks 1175.prime-arrangements 1176.diet-plan-performance 1177.can-make-palindrome-from-substring 1178.number-of-valid-words-for-each-puzzle 1184.distance-between-bus-stops 1185.day-of-the-week 1186.maximum-subarray-sum-with-one-deletion 1189.maximum-number-of-balloons 1190.reverse-substrings-between-each-pair-of-parentheses 1200.minimum-absolute-difference 1202.smallest-string-with-swaps 1207.unique-number-of-occurrences 1217.play-with-chips 1221.split-a-string-in-balanced-strings Click to show internal directories. Click to hide internal directories.