Directories ¶ Show internal Expand all Path Synopsis hackerrank hashmaps/count-triplets hashmaps/ransom-note hashmaps/sherlock-and-anagrams hashmaps/two-strings leetcode 1-two-sum 100-same-tree 101-symmetric-tree 102-binary-tree-level-order-traversal 1021-remove-outermost-parentheses 1029-two-city-scheduling 103-binary-tree-zigzag-order 1032-stream-of-characters 104-maximum-depth-of-binary-tree 105-construct-binary-tree-from-preorder-and-inorder-traversal 106-construct-binary-tree-from-inorder-and-postorder-traversal 107-binary-tree-level-order-traversal-II 108-convert-sorted-array-to-binary-search-tree 109-convert-sorted-list-to-binary-search-tree 1094-car-pooling 11-container-with-most-water 110-balanced-binary-tree 1103-distribute-candies-to-people 1109-corporate-flight-bookings 111-minimum-depth-of-binary-tree 112-path-sum 1122-relative-sort-array 1129-shortest-path-with-alternating-colors 113-path-sum-II 114-flatten-binary-tree-to-linked-list 1155-number-of-dice-rolls-with-target-sum 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 118-pascals-triangle 1186-maximum-subarray-sum-with-one-deletion 119-pascals-triangle-II 1190-reverse-substrings-between-each-pair-of-parentheses 1191-K-concatenation-maximum-sum 1192-critical-connections-in-a-network 121-best-time-to-buy-and-sell-stock 1213-intersection-of-three-sorted-arrays 1217-play-with-chips 1218-longest-arithmetic-subsequence-of-given-difference 1219-path-with-maximum-gold 122-best-time-to-buy-and-sell-stock-II 1220-count-vowels-permutation 123-best-time-to-buy-and-sell-stock-III 1248-count-number-of-nice-subarrays 1249-minimum-remove-to-make-valid-parentheses 125-valid-palindrome 126-word-ladder-II 1268-search-suggestions-system 127-word-ladder 128-longest-consecutive-sequence 129-sum-root-to-leaf-numbers 13-roman-to-integer 1317-convert-Integer-to-the-sum-of-two-no-zero-Integers 1318-minimum-flips-to-make-a-OR-b-equal-to-c 1319-number-of-operations-to-make-network-connected 1323-maximum-69-number 1324-print-words-vertically 1325-delete-leaves-with-a-given-value 1326-minimum-number-of-taps-to-open-to-water-a-garden 1332-remove-palindromic-subsequences 1333-filter-restaurants-by-vegan-friendly-price-and-distance 1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance 134-gas-station 136-single-number 1365-how-many-numbers-are-smaller-than-the-current-number 1367-linked-list-in-binary-tree 139-word-break 14-longest-common-prefix 140-word-break-II 141-linked-list-cycle 142-linked-list-cycle-II 143-reorder-list 144-binary-tree-preorder-traversal 145-binary-tree-postorder-traversal 146-LRU-cache 148-sort-list 15-3Sum 150-evaluate-reverse-polish-notation 151-reverse-words-in-a-string 152-maximum-product-subarray 153-find-minimum-in-rotated-sorted-array 154-find-minimum-in-rotated-sorted-array-II 155-min-stack 159-longest-substring-with-at-most-two-distinct-characters 16-3Sum-closest 160-intersection-of-two-linked-lists 164-maximum-gap 167-two-sum-II 169-majority-element 17-letter-combination-of-a-phone-number 173-binary-search-tree-iterator 179-largest-number 18-4Sum 188-best-time-to-buy-and-sell-stock-IV 189-rotate-array 19-remove-Nth-node-from-end-of-list 190-reverse-bits 191-number-of-1-bits 198-house-robber 199-binary-tree-right-side-view 2-add-two-numbers 20-valid-parentheses 200-number-of-islands 202-happy-number 203-remove-linked-list-elements 204-count-primes 205-isomorphic-strings 206-reverse-linked-list 207-course-schedule 208-implement-trie 209-minimum-size-subarray-sum 21-merge-two-sorted-lists 210-course-schedule-II 212-word-search-II 215-Kth-largest-element-in-an-array 217-contains-duplicate 22-generate-paretheses 221-maximal-square 222-count-complete-tree-nodes 226-invert-binary-tree 23-merge-k-sorted-lists 230-Kth-smallest-element-in-a-BST 232-implement-queue-using-stack 234-palindrome-linked-list 235-lowest-common-ancestor-of-a-binary-search-tree 236-lowest-common-ancestor-of-a-binary-tree 238-product-of-array-without-itself 239-sliding-maximum-window 24-swap-nodes-in-pairs 240-search-in-2D-matrix-II 242-valid-anagram 252-meeting-rooms 253-meeting-rooms-II 257-binary-tree-paths 258-add-digits 26-remove-duplicates-from-sorted-array 264-ugly-number-II 268-missing-number 269-alien-dictionary 279-perfect-squares 28-implement-strStr 280-wiggle-sort 283-move-zeros 287-find-the-duplicate-number 289-game-of-life 29-divide-two-integers 290-word-pattern 295-find-median-from-data-stream 3-longest-substring-without-repeating 300-longest-increasing-subsequence 309-Best-Time-to-Buy-and-Sell-Stock-with-Cooldown 31-next-permutation 315-count-of-smaller-number-after-self 318-maximum-product-of-words-length 32-longest-vald-parentheses 322-coin-change 328-odd-even-linked-list 33-search-in-rotated-sorted-array 338-counting-bits 34-first-and-last-position-of-element-in-sorted-array 344-reverse-string 347-top-K-frequent-elements 348-design-tic-tac-toe 349-intersection-of-two-arrays 35-search-insert-position 350-intersection-of-two-arrays-II 36-valid-sudoku 367-valid-perfect-square 37-sudoku-solver 387-first-unique-character-in-a-string 389-find-the-difference 39-combination-sum 394-decode-string 395-longest-substring-with-at-least-K-repeating-characters 4-median-of-two-sorted-arrays 402-remove-k-digits 403-frog-jump 409-longest-palindrome 41-first-missing-positive 410-split-array-largest-sum 412-fizz-buzz 415-add-strings 416-partition-equal-subset-sum 419-battleships-in-a-board 42-trapping-rain-water 424-longest-repeating-character-replacement 43-multiply-strings 438-find-all-anagrams-in-a-string 442-find-all-duplicates-in-an-array 447-number-of-boomerangs 448-find-all-numbers-disappeared-in-an-array 45-jump-game-II 450-delete-node-in-a-BST 451-sort-characters-by-frequency 452-minimum-number-of-arrows-to-burst-balloon 454-4Sum-II 455-assign-cookies 456-132-pattern 459-repeated-substring-pattern 46-permutations 461-hamming-distance 463-island-perimeter 47-permutations-II 472-concatenated-words 48-rotate-image 485-max-consecutive-ones 49-group-anagrams 494-target-sum 498-diagonal-traverse 5-longest-palindromic-substring 50-pow 509-fibonacci-number 51-N-queens 518-coin-change-2 52-N-queens-II 523-continious-subarray-sum 53-maximum-subarray 54-spiral-matrix 542-01-matrix 543-diameter-of-binary-tree 545-boundary-of-binary-tree 55-jump-game 557-reverse-words-in-a-string-III 56-merge-intervals 560-subarray-sum-equals-K 572-subtree-of-another-tree 59-spiral-matrix-II 594-most-harmonious-subsequence 599-minimum-index-sum-of-two-lists 60-permutation-sequence 605-can-place-flowers 609-find-duplicate-file-in-system 61-rotate-list 617-merge-two-binary-trees 62-unique-paths 621-task-scheduler 622-design-circular-queue 63-unique-paths-II 64-minimum-path-sum 642-design-search-autocomplete-system 643-maximum-average-subarray-I 647-palindromic-substrings 652-find-duplicate-subtrees 654-maximum-binary-tree 657-robot-returning-to-origin 658-find-K-closest-elements 66-plus-one 67-add-binary 677-map-sum-pairs 678-valid-parenthesis-string 680-valid-palindrome-II 692-top-K-frequent-words 694-number-of-distinct-islands 695-max-area-of-island 7-reverse-integer 70-climb-stairs 700-search-in-a-binary-search-tree 701-insert-into-binary-search-tree 703-Kth-largest-element-in-a-stream 704-binary-search 705-design-hashset 706-design-hashmap 709-to-lower-case 71-simplify-path 716-max-stack 719-find-Kth-smallest-pair-distance 72-edit-distance 724-find-pivot-index 73-set-matrix-zeroes 733-flood-fill 736-parse-lisp-expression 739-daily-temperatures 74-search-in-2D-matrix 744-find-smallest-letter-greater-than-target 746-min-cost-climbing-stairs 747-largest-number-at-least-twice-of-others 75-sort-colors 752-open-the-lock 76-minimum-window-substring 763-partition-labels 77-combinations 771-jewels-and-stones 779-Kth-symbol-in-a-grammar 78-subsets 786-K-th-smallest-prime-factor 787-cheapest-flights-within-K-stops 79-word-search 797-all-paths-from-source-to-target 8-string-to-integer 80-remove-duplicates-from-sorted-array-II 802-find-eventual-safe-states 804-unique-morse-code-words 807-max-increase-to-keep-city-skyline 81-search-in-rotated-sorted-array-II 814-binary-tree-pruning 818-race-car 819-most-common-word 82-remove-duplicates-from-sorted-list-II 821-shortest-distance-to-a-character 83-remove-duplicates-from-sorted-list 832-flipping-a-image 836-rectangle-overlap 84-largest-rectangle-in-histogram 841-keys-and-rooms 844-backspace-string-compare 852-peak-index-of-array 856-score-of-parentheses 86-partition-list 860-lemonade-change 862-shortest-subarray-with-sum-at-least-K 866-prime-palindrome 876-middle-of-the-linked-list 88-merge-sorted-array 881-boats-to-save-people 887-super-egg-drop 890-find-and-replace-pattern 9-palindrome-number 90-subsets-II 904-fruits-into-baskets 905-sort-array-by-parity 907-sum-of-subarray-minimums 91-decode-ways 912-sort-an-array 92-reverse-linked-list-II 921-minimum-add-to-make-parenhless-valid 925-long-pressed-name 929-unique-email-addresses 93-restore-ip-address 930-binary-subarrays-with-sum 931-minimum-falling-path-sum 935-knight-dialer 937-reorder-data-in-log-files 938-range-sum-of-bst 94-binary-tree-inorder-traversal 942-di-string-match 944-delete-columns-to-make-sorted 95-unique-binary-search-trees-II 950-reveal-cards-in-increasing-order 957-prison-cells-after-N-days 96-unique-binary-search-trees 961-n-repeated-element-in-2n-array 965-univalued-binary-tree 969-pancake-sorting 973-K-closest-point-to-origin 975-odd-even-jump 977-squares-of-sorted-array 979-distribute-coins-in-binary-tree 98-validate-binary-search-tree 980-unique-paths-III 981-time-based-key-value-storage 987-vertical-order-traversal-of-a-binary-tree 989-add-to-array-form-of-integer 99-recover-binary-search-tree 992-subarrays-with-k-different-integers 994-rotting-oranges math search sorting Click to show internal directories. Click to hide internal directories.