Directories ¶ Show internal Expand all Path Synopsis 001.two-sum 002.add-two-numbers 003.longest-substring-without-repeating-characters 006.zigzag-conversion 007.reverse-integer 009.palindrome-number 011.container-with-most-water 012.integer-to-roman 013.roman-to-integer 014.longest-common-prefix 018.4sum 019.remove-nth-node-from-end-of-list 020.valid-parentheses 021.merge-two-sorted-lists 024.swap-nodes-in-pairs 027.remove-element 028.implement-strstr 029.divide-two-integers 034.find-first-and-last-position-of-element-in-sorted-array 036.valid-sudoku 038.count-and-say 042.trapping-rain-water 045.jump-game-ii 050.powx-n 053.maximum-subarray 054.spiral-matrix 055.jump-game 058.length-of-last-word 066.plus-one 067.add-binary 070.climbing-stairs 071.simplify-path 079.word-search 089.gray-code 098.validate-binary-search-tree 1001.grid-illumination 1005.maximize-sum-of-array-after-k-negations 101.symmetric-tree 102.binary-tree-level-order-traversal 1020.number-of-enclaves 103.binary-tree-zigzag-level-order-traversal 1034.coloring-a-border 1036.escape-a-large-maze 104.maximum-depth-of-binary-tree 1044.longest-duplicate-substring 1078.occurrences-after-bigram 110.balanced-binary-tree 1109.corporate-flight-bookings 111.minimum-depth-of-binary-tree 112.path-sum 113.path-sum-ii 1137.n-th-tribonacci-number 1154.day-of-the-year 1185.day-of-the-week 1189.maximum-number-of-balloons 121.best-time-to-buy-and-sell-stock 1218.longest-arithmetic-subsequence-of-given-difference 1219.path-with-maximum-gold 1220.count-vowels-permutation 1282.group-the-people-given-the-group-size-they-belong-to 1332.remove-palindromic-subsequences 1342.number-of-steps-to-reduce-a-number-to-zero 1345.jump-game-iv 135.candy 138.copy-list-with-random-pointer 1380.lucky-numbers-in-a-matrix 1405.longest-happy-string 141.linked-list-cycle 1414.find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k 143.reorder-list 1436.destination-city 1446.consecutive-characters 1447.simplified-fractions 146.lru-cache 1518.water-bottles 153.find-minimum-in-rotated-sorted-array 154.find-minimum-in-rotated-sorted-array-ii 155.min-stack 1576.replace-all-s-to-avoid-consecutive-repeating-characters 1601.maximum-number-of-achievable-transfer-requests 1606.find-servers-that-handled-most-number-of-requests 1609.even-odd-tree 1610.maximum-number-of-visible-points 1614.maximum-nesting-depth-of-the-parentheses 162.find-peak-element 1629.slowest-key 165.compare-version-numbers 166.fraction-to-recurring-decimal 1672.richest-customer-wealth 1688.count-of-matches-in-tournament 1705.maximum-number-of-eaten-apples 1706.where-will-the-ball-fall 1716.calculate-money-in-leetcode-bank 1719.number-of-ways-to-reconstruct-a-tree 172.factorial-trailing-zeroes 1725.number-of-rectangles-that-can-form-the-largest-square 1748.sum-of-unique-elements 1763.longest-nice-substring 1765.map-of-highest-peak 1791.find-center-of-star-graph 1816.truncate-sentence 187.repeated-dna-sequences 1879.minimum-xor-sum-of-two-arrays 198.house-robber 1984.minimum-difference-between-highest-and-lowest-of-k-scores 1994.the-number-of-good-subsets 1995.count-special-quadruplets 1996.the-number-of-weak-characters-in-the-game 2000.reverse-prefix-of-word 2006.count-number-of-pairs-with-absolute-difference-k 2013.detect-squares 2016.maximum-difference-between-increasing-elements 2022.convert-1d-array-into-2d-array 2024.maximize-the-confusion-of-an-exam 2028.find-missing-observations 2029.stone-game-ix 2034.stock-price-fluctuation 2038.remove-colored-pieces-if-both-neighbors-are-the-same-color 2039.the-time-when-the-network-becomes-idle 2043.simple-bank-system 2044.count-number-of-maximum-bitwise-or-subsets 2045.second-minimum-time-to-reach-destination 2047.number-of-valid-words-in-a-sentence 2049.count-nodes-with-the-highest-score 2055.plates-between-candles 206.reverse-linked-list 208.implement-trie-prefix-tree 2100.find-good-days-to-rob-the-bank 2104.sum-of-subarray-ranges 211.design-add-and-search-words-data-structure 212.word-search-ii 213.house-robber-ii 217.contains-duplicate 219.contains-duplicate-ii 223.rectangle-area 226.invert-binary-tree 229.majority-element-ii 230.kth-smallest-element-in-a-bst 235.lowest-common-ancestor-of-a-binary-search-tree 236.lowest-common-ancestor-of-a-binary-tree 237.delete-node-in-a-linked-list 240.search-a-2d-matrix-ii 258.add-digits 260.single-number-iii 268.missing-number 273.integer-to-english-words 282.expression-add-operators 284.peeking-iterator 292.nim-game 299.bulls-and-cows 300.longest-increasing-subsequence 301.remove-invalid-parentheses 304.range-sum-query-2d-immutable 306.additive-number 307.range-sum-query-mutable 310.minimum-height-trees 318.maximum-product-of-word-lengths 319.bulb-switcher 322.coin-change 326.power-of-three 334.increasing-triplet-subsequence 352.data-stream-as-disjoint-intervals 357.count-numbers-with-unique-digits 367.valid-perfect-square 371.sum-of-two-integers 372.super-pow 373.find-k-pairs-with-smallest-sums 375.guess-number-higher-or-lower-ii 380.insert-delete-getrandom-o1 382.linked-list-random-node 383.ransom-note 384.shuffle-an-array 385.mini-parser 390.elimination-game 391.perfect-rectangle 392.is-subsequence 393.utf-8-validation 397.integer-replacement 400.nth-digit 405.convert-a-number-to-hexadecimal 407.trapping-rain-water-ii 412.fizz-buzz 414.third-maximum-number 419.battleships-in-a-board 420.strong-password-checker 423.reconstruct-original-digits-from-english 429.n-ary-tree-level-order-traversal 430.flatten-a-multilevel-doubly-linked-list 432.all-oone-data-structure 434.number-of-segments-in-a-string 437.path-sum-iii 438.find-all-anagrams-in-a-string 440.k-th-smallest-in-lexicographical-order 441.arranging-coins 447.number-of-boomerangs 453.minimum-moves-to-equal-array-elements 458.poor-pigs 460.lfu-cache 472.concatenated-words 475.heaters 476.number-complement 479.largest-palindrome-product 482.license-key-formatting 488.zuma-game 492.construct-the-rectangle 495.teemo-attacking 496.next-greater-element-i 500.keyboard-row 504.base-7 506.relative-ranks 507.perfect-number 509.fibonacci-number 517.super-washing-machines 519.random-flip-matrix 520.detect-capital 521.longest-uncommon-subsequence-i 524.longest-word-in-dictionary-through-deleting 537.complex-number-multiplication 539.minimum-time-difference 540.single-element-in-a-sorted-array 553.optimal-division 559.maximum-depth-of-n-ary-tree 563.binary-tree-tilt 564.find-the-closest-palindrome 565.array-nesting 575.distribute-candies 583.delete-operation-for-two-strings 589.n-ary-tree-preorder-traversal 590.n-ary-tree-postorder-traversal 594.longest-harmonious-subsequence 598.range-addition-ii 599.minimum-index-sum-of-two-lists 606.construct-string-from-binary-tree 630.course-schedule-iii 638.shopping-offers 639.decode-ways-ii 650.2-keys-keyboard 653.two-sum-iv-input-is-a-bst 658.find-k-closest-elements 661.image-smoother 673.number-of-longest-increasing-subsequence 677.map-sum-pairs 678.valid-parenthesis-string 682.baseball-game 686.repeated-string-match 688.knight-probability-in-chessboard 689.maximum-sum-of-3-non-overlapping-subarrays 693.binary-number-with-alternating-bits 700.search-in-a-binary-search-tree 704.binary-search 709.to-lower-case 717.1-bit-and-2-bit-characters 720.longest-word-in-dictionary 725.split-linked-list-in-parts 728.self-dividing-numbers 740.delete-and-earn 744.find-smallest-letter-greater-than-target 746.min-cost-climbing-stairs 748.shortest-completing-word 762.prime-number-of-set-bits-in-binary-representation 780.reaching-points 786.k-th-smallest-prime-fraction 794.valid-tic-tac-toe-state 796.rotate-string 798.smallest-rotation-with-highest-score 804.unique-morse-code-words 806.number-of-lines-to-write-string 807.max-increase-to-keep-city-skyline 819.most-common-word 825.friends-of-appropriate-ages 838.push-dominoes 846.hand-of-straights 851.loud-and-rich 859.buddy-strings 869.reordered-power-of-2 876.middle-of-the-linked-list 884.uncommon-words-from-two-sentences 908.smallest-range-i 911.online-election 913.cat-and-mouse 917.reverse-only-letters 918.maximum-sum-circular-subarray 954.array-of-doubled-pairs 969.pancake-sorting 997.find-the-town-judge Offer-03 Offer-04 Offer-06 Offer-09 Offer-11 Offer-13 Offer-24 Offer-26 Offer-30 Offer-32-I Offer-32-II Offer-32-III Offer-35 Offer-45 Offer-46 Offer-48 Offer-50 Offer-51 Offer-II-69 common Click to show internal directories. Click to hide internal directories.