├── Collections ├── array-scanning.md ├── averaging-from-total-and-count.md ├── backtracking.md ├── binary-lifting.md ├── binary-search.md ├── bitwise-operation.md ├── brute-force-enumeration.md ├── case-by-case-analysis.md ├── chatgpt.md ├── concurrency.md ├── construction.md ├── counting-elements-in-array.md ├── deque.md ├── design-data-structure.md ├── disjoint-set-union.md ├── divide-and-conquer.md ├── dynamic-programming.md ├── dynamic-update-of-left-and-right-neighbours.md ├── encoding-and-decoding.md ├── flattening.md ├── formatted-output.md ├── fraud.md ├── graph-theory.md ├── greedy.md ├── hashmap.md ├── heuristic-optimisation.md ├── integer-operations-on-strings.md ├── intervals.md ├── linked-list.md ├── majority-element.md ├── mathematics.md ├── matrix.md ├── meet-in-the-middle.md ├── number-transformations-based-on-mathematical-rules.md ├── offline-query-processing.md ├── palindrome.md ├── permutation.md ├── pointers.md ├── points-in-2d-plane.md ├── precomputation-to-answer-queries-efficiently-with-delta.md ├── prefix.md ├── priority-queue.md ├── process-in-unusual-order.md ├── process-multiple-vectors-together.md ├── quadtree.md ├── queue.md ├── quick-select.md ├── range-updates-using-prefix-sum.md ├── search-by-iterative-bound-improvement.md ├── segment-tree.md ├── simple-implementation.md ├── sliding-window.md ├── sorting.md ├── stack.md ├── string.md ├── suboptimal-solution.md ├── time-reversed-simulation.md ├── tree.md ├── trie.md ├── two-player-games.md ├── two-pointers.md ├── unique-duplicate-element-finding-with-bizarro-algorithms.md ├── unique-elements-in-subarray.md ├── untagged.md └── valid-subarray-counting.md ├── LICENSE ├── README.md ├── Solutions ├── 0-9 │ ├── 01-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── 1-bit-and-2-bit-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── 132-pattern │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── 2-keys-keyboard │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── 24-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── 3sum-closest │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── 3sum-with-multiplicity │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── 3sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── 4sum-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── 4sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── A │ ├── account-balance-after-rounded-purchase │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── accounts-merge │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-binary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-digits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-edges-to-make-degrees-of-all-nodes-even │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-one-row-to-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── add-to-array-form-of-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-two-numbers-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── add-two-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── adding-spaces-to-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── adjacent-increasing-subarrays-detection-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── adjacent-increasing-subarrays-detection-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── advantage-shuffle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── alice-and-bob-playing-flower-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── all-ancestors-of-a-node-in-a-directed-acyclic-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── all-elements-in-two-binary-search-trees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── all-nodes-distance-k-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── all-oone-data-structure │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── all-paths-from-source-to-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── all-possible-full-binary-trees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── alternating-digit-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── alternating-groups-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── alternating-groups-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── alternating-groups-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── ambiguous-coordinates │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── amount-of-time-for-binary-tree-to-be-infected │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── angle-between-hands-of-a-clock │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── ant-on-the-boundary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── append-characters-to-string-to-make-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── apple-redistribution-into-boxes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── apply-bitwise-operations-to-make-strings-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── apply-operations-on-array-to-maximize-sum-of-squares │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── apply-operations-to-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── apply-operations-to-make-all-array-elements-equal-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── apply-operations-to-make-string-empty │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── apply-operations-to-make-sum-of-array-greater-than-or-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── apply-operations-to-make-two-strings-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── apply-operations-to-maximize-frequency-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── apply-operations-to-maximize-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── arithmetic-slices-ii-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── arithmetic-slices │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── arithmetic-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── arranging-coins │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── array-nesting │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── array-of-doubled-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── as-far-from-land-as-possible │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── assign-cookies │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── assign-elements-to-groups-with-constraints │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── asteroid-collision │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── average-of-levels-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── average-salary-excluding-the-minimum-and-maximum-salary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── average-value-of-even-numbers-that-are-divisible-by-three │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── average-waiting-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ └── avoid-flood-in-the-city │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags ├── B │ ├── backspace-string-compare │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── bag-of-tokens │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── balance-a-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── balanced-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── baseball-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── basic-calculator-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── basic-calculator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── beautiful-arrangement-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── beautiful-arrangement │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── beautiful-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── beautiful-towers-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── beautiful-towers-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-poker-hand │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-position-for-a-service-centre │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-sightseeing-pair │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-team-with-no-conflicts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-time-to-buy-and-sell-stock-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-time-to-buy-and-sell-stock-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-time-to-buy-and-sell-stock-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-time-to-buy-and-sell-stock-with-cooldown │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-time-to-buy-and-sell-stock-with-transaction-fee │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── best-time-to-buy-and-sell-stock │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-prefix-divisible-by-5 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── binary-search-tree-iterator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-search-tree-to-greater-sum-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── binary-search │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-subarrays-with-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── binary-tree-cameras │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-inorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-level-order-traversal-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-level-order-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-maximum-path-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-postorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── binary-tree-preorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-pruning │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-right-side-view │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-tilt │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-tree-zigzag-level-order-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-trees-with-factors │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── binary-watch │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── bitwise-and-of-numbers-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── bitwise-ors-of-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── bitwise-xor-of-all-pairings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── block-placement-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── boats-to-save-people │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── break-a-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── brick-wall │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── broken-calculator │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── buddy-strings │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── build-a-matrix-with-conditions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── build-an-array-with-stack-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── build-array-from-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── build-array-where-you-can-find-the-maximum-exactly-k-comparisons │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── building-h2o │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── bulb-switcher │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── bulls-and-cows │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── burst-balloons │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── bus-routes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── button-with-longest-push-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ └── buy-two-chocolates │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── C │ ├── calculate-amount-paid-in-taxes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── calculate-delayed-arrival-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── calculate-money-in-leetcode-bank │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── can-make-arithmetic-progression-from-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── can-place-flowers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── candy │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── capacity-to-ship-packages-within-d-days │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── car-pooling │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── categorize-box-according-to-criteria │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── champagne-tower │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── cheapest-flights-within-k-stops │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-array-formation-through-concatenation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-balanced-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-completeness-of-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-distances-between-same-letters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-a-parentheses-string-can-be-valid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-a-string-contains-all-binary-codes-of-size-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-a-string-is-an-acronym-of-words │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-all-1s-are-at-least-length-k-places-away │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-all-the-integers-in-a-range-are-covered │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-array-is-good │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-array-is-sorted-and-rotated │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-array-pairs-are-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-bitwise-or-has-trailing-zeros │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-dfs-strings-are-palindromes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-digits-are-equal-in-string-after-operations-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-grid-can-be-cut-into-sections │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-grid-satisfies-conditions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-it-is-a-good-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-it-is-a-straight-line │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-it-is-possible-to-split-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-matrix-is-x-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-n-and-its-double-exist │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-number-is-a-sum-of-powers-of-three │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-one-string-swap-can-make-strings-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-point-is-reachable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-strings-can-be-made-equal-with-operations-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-strings-can-be-made-equal-with-operations-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-the-number-is-fascinating │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-the-rectangle-corner-is-reachable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-the-sentence-is-pangram │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-there-is-a-valid-partition-for-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-two-chessboard-squares-have-the-same-color │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── check-if-two-string-arrays-are-equivalent │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-if-word-equals-summation-of-two-words │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── check-knight-tour-configuration │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── checking-existence-of-edge-length-limited-paths │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── cherry-pickup-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── cinema-seat-allocation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── circular-sentence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── clear-digits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── climbing-stairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── clone-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── closest-nodes-queries-in-a-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── closest-prime-numbers-in-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── closest-room │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── coin-change-2 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── coin-change │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── collect-coins-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── collecting-chocolates │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── combination-sum-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── combination-sum-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── combination-sum-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── combination-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── combinations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── compare-version-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── complement-of-base-10-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── complex-number-multiplication │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── concatenated-words │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── concatenation-of-consecutive-binary-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── consecutive-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── constrained-subsequence-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-2d-grid-matching-graph-layout │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-binary-search-tree-from-preorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-binary-tree-from-inorder-and-postorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-binary-tree-from-preorder-and-inorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-binary-tree-from-preorder-and-postorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-k-palindrome-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-product-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-quad-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-smallest-number-from-di-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-string-from-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-string-with-minimum-cost │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-string-with-repeat-limit │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-target-array-with-multiple-sums │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-the-lexicographically-largest-valid-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-the-longest-new-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── construct-the-minimum-bitwise-array-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── construct-the-minimum-bitwise-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── container-with-most-water │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── contains-duplicate-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── contains-duplicate-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── contiguous-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── continuous-subarray-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── continuous-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── convert-1d-array-into-2d-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── convert-an-array-into-a-2d-array-with-conditions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── convert-binary-number-in-a-linked-list-to-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── convert-bst-to-greater-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── convert-date-to-binary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── convert-integer-to-the-sum-of-two-no-zero-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── convert-sorted-array-to-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── convert-sorted-list-to-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── convert-the-temperature │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── copy-list-with-random-pointer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-all-possible-routes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-all-valid-pickup-and-delivery-options │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-almost-equal-pairs-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-almost-equal-pairs-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── count-alternating-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-anagrams │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-and-say │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-asterisks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-beautiful-splits-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-beautiful-substrings-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-beautiful-substrings-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-binary-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-collisions-of-monkeys-on-a-polygon │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-collisions-on-a-road │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-complete-subarrays-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-complete-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-complete-tree-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-connected-components-in-lcm-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-days-spent-together │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-days-without-meetings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-distinct-numbers-on-board │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-elements-with-maximum-frequency │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-good-nodes-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-good-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-good-triplets-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-good-triplets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-hills-and-valleys-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-increasing-quadruplets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-k-reducible-numbers-less-than-n │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-k-subsequences-of-a-string-with-maximum-beauty │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-largest-group │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-mentions-per-user │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-negative-numbers-in-a-sorted-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-nice-pairs-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-nodes-equal-to-average-of-subtree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-non-decreasing-subarrays-after-k-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-bad-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-number-of-balanced-permutations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-distinct-integers-after-reverse-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-number-of-homogenous-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-maximum-bitwise-or-subsets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-nice-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-possible-root-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-number-of-teams │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-trapezoids-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-trapezoids-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-number-of-ways-to-place-houses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-odd-numbers-in-an-interval-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-of-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-of-interesting-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-of-matches-in-tournament │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-of-range-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-of-smaller-numbers-after-self │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-of-sub-multisets-with-bounded-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-of-substrings-containing-every-vowel-and-k-consonants-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-of-substrings-containing-every-vowel-and-k-consonants-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-operations-to-obtain-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-pairs-of-connectable-servers-in-a-weighted-tree-network │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-pairs-of-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-pairs-of-points-with-distance-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-pairs-of-similar-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-pairs-that-form-a-complete-day-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-pairs-that-form-a-complete-day-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-pairs-whose-sum-is-less-than-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-pairs-with-xor-in-a-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-palindromic-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-partitions-with-even-sum-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-partitions-with-max-min-difference-at-most-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-paths-that-can-form-a-palindrome-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-paths-with-the-given-xor-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-prefix-and-suffix-pairs-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-prefix-and-suffix-pairs-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-primes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-servers-that-communicate │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-sorted-vowel-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-special-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-special-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-square-submatrices-with-all-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-square-sum-triples │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-stepping-numbers-in-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-sub-islands │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-subarrays-of-length-three-with-a-condition │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-subarrays-where-max-element-appears-at-least-k-times │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-subarrays-with-fixed-bounds │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-subarrays-with-median-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-subarrays-with-score-less-than-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-submatrices-with-all-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-submatrices-with-equal-frequency-of-x-and-y │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-submatrices-with-top-left-element-and-sum-less-than-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-divisible-by-last-digit │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-starting-and-ending-with-given-character │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-that-can-be-rearranged-to-contain-a-string-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-that-can-be-rearranged-to-contain-a-string-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-that-satisfy-k-constraint-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-that-satisfy-k-constraint-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-substrings-with-k-frequency-characters-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-symmetric-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-tested-devices-after-test-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-digits-that-divide-a-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-hidden-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-arrays-with-k-matching-adjacent-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-beautiful-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-complete-components │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-consistent-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-fair-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-good-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-good-partitions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-good-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-houses-at-a-certain-distance-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-houses-at-a-certain-distance-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-ideal-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-incremovable-subarrays-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-incremovable-subarrays-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-infection-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-inversions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-powerful-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-special-characters-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-special-characters-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-square-free-subsets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-substrings-with-dominant-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-the-number-of-vowel-strings-in-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-the-number-of-winning-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-total-number-of-colored-cells │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-triplets-that-can-form-two-arrays-of-equal-xor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-unguarded-cells-in-the-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-unique-characters-of-all-substrings-of-a-given-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-unreachable-pairs-of-nodes-in-an-undirected-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-valid-paths-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── count-visited-nodes-in-a-directed-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── count-vowel-strings-in-ranges │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-vowels-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-ways-to-build-good-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-ways-to-group-overlapping-ranges │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── count-zero-request-servers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── counting-bits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── counting-elements │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── counting-words-with-a-given-prefix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── course-schedule-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── course-schedule-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── course-schedule-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── course-schedule │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── cousins-in-binary-tree-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── cousins-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── crawler-log-folder │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── create-binary-tree-from-descriptions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── create-components-with-same-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── create-sorted-array-through-instructions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── critical-connections-in-a-network │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── custom-sort-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── cycle-length-queries-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── D │ ├── daily-temperatures │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── data-stream-as-disjoint-intervals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── decode-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── decode-ways-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── decode-ways │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── decoded-string-at-index │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── decremental-string-concatenation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── deepest-leaves-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── defuse-the-bomb │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── delete-and-earn │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-characters-to-make-fancy-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── delete-columns-to-make-sorted │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-duplicate-folders-in-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── delete-greatest-value-in-each-row │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-leaves-with-a-given-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── delete-node-in-a-bst │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-node-in-a-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-nodes-and-return-forest │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-nodes-from-linked-list-present-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── delete-operation-for-two-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delete-the-middle-node-of-a-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── delivering-boxes-from-storage-to-ports │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-a-food-rating-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-a-number-container-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-a-stack-with-increment-operation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── design-add-and-search-words-data-structure │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-authentication-manager │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-browser-history │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-circular-deque │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── design-circular-queue │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-graph-with-shortest-path-calculator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-hashmap │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-hashset │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-memory-allocator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-movie-rental-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-neighbor-sum-service │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── design-parking-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── design-spreadsheet │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── design-task-manager │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── design-underground-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── destination-city │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── destroy-sequential-targets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── detect-capital │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── detect-cycles-in-2d-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-color-of-a-chessboard-square │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-if-a-cell-is-reachable-at-a-given-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-if-string-halves-are-alike │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-if-two-events-have-conflict │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-if-two-strings-are-close │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── determine-the-minimum-sum-of-a-k-avoiding-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-the-winner-of-a-bowling-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── determine-whether-matrix-can-be-obtained-by-rotation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── detonate-the-maximum-bombs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── diagonal-traverse-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── diagonal-traverse │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── diameter-of-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── difference-between-element-sum-and-digit-sum-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── difference-between-maximum-and-minimum-price-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── difference-between-ones-and-zeros-in-row-and-column │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── difference-of-number-of-distinct-values-on-diagonals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── different-ways-to-add-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── digit-operations-to-make-two-integers-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── disconnect-path-in-a-binary-matrix-by-at-most-one-flip │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── distinct-prime-factors-of-product-of-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── distinct-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── distribute-candies-among-children-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── distribute-candies-among-children-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── distribute-candies-to-people │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── distribute-candies │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── distribute-coins-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── distribute-elements-into-two-arrays-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── distribute-elements-into-two-arrays-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── distribute-money-to-maximum-children │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divide-a-string-into-groups-of-size-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── divide-an-array-into-subarrays-with-minimum-cost-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divide-an-array-into-subarrays-with-minimum-cost-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divide-array-in-sets-of-k-consecutive-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── divide-array-into-arrays-with-max-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── divide-array-into-equal-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── divide-intervals-into-minimum-number-of-groups │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divide-nodes-into-the-maximum-number-of-groups │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divide-players-into-teams-of-equal-skill │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divide-two-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── divisible-and-non-divisible-sums-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── domino-and-tromino-tiling │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── dota2-senate │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── double-a-number-represented-as-a-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── double-modular-exponentiation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── dungeon-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── duplicate-zeros │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── E │ ├── earliest-possible-day-of-full-bloom │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── earliest-second-to-mark-indices-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── earliest-second-to-mark-indices-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── edit-distance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── element-appearing-more-than-25-in-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── eliminate-maximum-number-of-monsters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── employee-importance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── encode-and-decode-tinyurl │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── equal-row-and-column-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── erect-the-fence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── evaluate-boolean-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── evaluate-division │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── evaluate-reverse-polish-notation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── evaluate-the-bracket-pairs-of-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── even-odd-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── excel-sheet-column-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── excel-sheet-column-title │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── execution-of-all-suffix-instructions-staying-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── existence-of-a-substring-in-a-string-and-its-reverse │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── expression-add-operators │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ └── extra-characters-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── F │ ├── factorial-trailing-zeroes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fair-distribution-of-cookies │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── falling-squares │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fancy-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── faulty-keyboard │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fibonacci-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── filling-bookcase-shelves │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── final-array-state-after-k-multiplication-operations-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── final-array-state-after-k-multiplication-operations-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── final-prices-with-a-special-discount-in-a-shop │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── final-value-of-variable-after-performing-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-a-good-subset-of-the-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-a-safe-walk-through-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-a-value-of-a-mysterious-function-closest-to-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-all-anagrams-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-all-duplicates-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-all-good-indices │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-all-groups-of-farmland │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-all-k-distant-indices-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-all-numbers-disappeared-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-all-people-with-secret │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-all-possible-recipes-from-given-supplies │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-all-possible-stable-binary-arrays-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-all-possible-stable-binary-arrays-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-and-replace-pattern │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-beautiful-indices-in-the-given-array-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-beautiful-indices-in-the-given-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-bottom-left-tree-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-building-where-alice-and-bob-can-meet │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-center-of-star-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-champion-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-champion-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-closest-node-to-given-two-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-closest-person │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-common-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-common-elements-between-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-consecutive-integers-from-a-data-stream │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-duplicate-file-in-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-duplicate-subtrees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-edges-in-shortest-paths │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-elements-in-a-contaminated-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-eventual-safe-states │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-first-and-last-position-of-element-in-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-first-palindromic-string-in-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-if-array-can-be-sorted │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-if-digit-game-can-be-won │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-if-path-exists-in-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-in-mountain-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-indices-of-stable-mountains │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-indices-with-index-and-value-difference-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-indices-with-index-and-value-difference-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-k-closest-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-k-pairs-with-smallest-sums │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-k-th-smallest-pair-distance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-kth-bit-in-nth-binary-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ ├── Solution2.py │ │ └── tags │ ├── find-largest-value-in-each-tree-row │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-longest-special-substring-that-occurs-thrice-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-longest-special-substring-that-occurs-thrice-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-lucky-integer-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-maximum-non-decreasing-array-length │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-maximum-number-of-string-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-maximum-removals-from-source-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-median-from-data-stream │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-minimum-diameter-after-merging-two-trees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-minimum-in-rotated-sorted-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-minimum-in-rotated-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-minimum-operations-to-make-all-elements-divisible-by-three │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-minimum-time-to-reach-last-room-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-minimum-time-to-reach-last-room-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-mirror-score-of-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-missing-and-repeated-values │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-missing-observations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-mode-in-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-most-frequent-vowel-and-consonant │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-n-unique-integers-sum-up-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-nearest-point-that-has-the-same-x-or-y-coordinate │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-number-of-coins-to-place-in-tree-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-number-of-ways-to-reach-the-k-th-stair │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-numbers-with-even-number-of-digits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-occurrences-of-an-element-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-original-array-from-doubled-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-peak-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-players-with-zero-or-one-losses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-polygon-with-the-largest-perimeter │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-products-of-elements-of-big-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-resultant-array-after-removing-anagrams │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-right-interval │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-score-of-an-array-after-marking-all-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-smallest-letter-greater-than-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-subarray-with-bitwise-and-closest-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-subarrays-with-equal-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-subsequence-of-length-k-with-the-largest-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-subtree-sizes-after-changes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-sum-of-array-product-of-magical-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-array-concatenation-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-child-who-has-the-ball-after-k-seconds │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-closest-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-count-of-good-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-count-of-monotonic-pairs-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-count-of-monotonic-pairs-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-count-of-numbers-which-are-not-special │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-difference-of-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-distance-value-between-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-distinct-difference-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-divisibility-array-of-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-duplicate-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-encrypted-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-first-player-to-win-k-games-in-a-row │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-grid-of-region-average │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-highest-altitude │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-integer-added-to-array-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-integer-added-to-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-k-or-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-k-sum-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-k-th-character-in-string-game-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-k-th-character-in-string-game-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-key-of-the-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-largest-area-of-square-inside-two-rectangles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-largest-palindrome-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-length-of-the-longest-common-prefix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-lexicographically-largest-string-from-the-box-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-lexicographically-smallest-valid-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-longest-balanced-substring-of-a-binary-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-longest-equal-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-longest-semi-repetitive-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-longest-substring-containing-vowels-in-even-counts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-longest-valid-obstacle-course-at-each-position │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-losers-of-the-circular-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-maximum-achievable-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-maximum-divisibility-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-maximum-factor-score-of-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-length-of-a-good-subsequence-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-length-of-a-good-subsequence-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-length-of-valid-subsequence-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-length-of-valid-subsequence-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-number-of-elements-in-subset │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-number-of-fruits-collected │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-number-of-marked-indices │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-maximum-sequence-value-of-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-maximum-sum-of-node-values │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-median-of-the-uniqueness-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-minimum-amount-of-time-to-brew-potions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-minimum-and-maximum-number-of-nodes-between-critical-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-minimum-area-to-cover-all-ones-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-minimum-area-to-cover-all-ones-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-minimum-cost-array-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-minimum-possible-sum-of-a-beautiful-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-most-competitive-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-n-th-value-after-k-seconds │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-distinct-colors-among-the-balls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-good-pairs-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-good-pairs-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-possible-ways-for-an-event │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-subarrays-where-boundary-elements-are-maximum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-subsequences-with-equal-gcd │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-ways-to-place-people-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-ways-to-place-people-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-number-of-winning-players │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-occurrence-of-first-almost-equal-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-original-array-of-prefix-xor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-original-typed-string-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-original-typed-string-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-peaks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-pivot-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-power-of-k-size-subarrays-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-power-of-k-size-subarrays-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-prefix-common-array-of-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-punishment-number-of-an-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-safest-path-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-score-of-all-prefixes-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-sequence-of-strings-appeared-on-the-screen │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-shortest-superstring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-smallest-divisor-given-a-threshold │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-string-with-lcp │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-student-that-will-replace-the-chalk │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-substring-with-maximum-cost │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-sum-of-encrypted-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-sum-of-subsequence-powers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── find-the-sum-of-the-power-of-all-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-town-judge │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-value-of-the-partition │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-width-of-columns-of-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-winner-of-an-array-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-winner-of-the-circular-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-the-winning-player-in-coin-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-the-xor-of-numbers-which-appear-twice │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-triangular-sum-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-unique-binary-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-valid-matrix-given-row-and-column-sums │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-valid-pair-of-adjacent-digits-in-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-winner-on-a-tic-tac-toe-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-words-containing-character │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-words-that-can-be-formed-by-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-x-sum-of-all-k-long-subarrays-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-x-sum-of-all-k-long-subarrays-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── find-xor-beauty-of-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── find-xor-sum-of-all-pairs-bitwise-and │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── finding-3-digit-even-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── finding-mk-average │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── finding-pairs-with-a-certain-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── finding-the-users-active-minutes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── first-bad-version │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── first-completely-painted-row-or-column │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── first-letter-to-appear-twice │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── first-missing-positive │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── first-unique-character-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── first-unique-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fizz-buzz-multithreaded │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fizz-buzz │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── flatten-a-multilevel-doubly-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── flatten-binary-tree-to-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── flatten-nested-list-iterator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── flip-binary-tree-to-match-preorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── flip-columns-for-maximum-number-of-equal-rows │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── flip-equivalent-binary-trees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── flip-string-to-monotone-increasing │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── flipping-an-image │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── flood-fill │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── form-smallest-number-from-two-digit-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fraction-addition-and-subtraction │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── fraction-to-recurring-decimal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── freedom-trail │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── frequencies-of-shortest-supersequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── frequency-of-the-most-frequent-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── frequency-tracker │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── frog-jump-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── frog-jump │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fruit-into-baskets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── fruits-into-baskets-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── fruits-into-baskets-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── furthest-building-you-can-reach │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── furthest-point-from-origin │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── G │ ├── game-of-life │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── gas-station │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── generate-binary-strings-without-adjacent-zeros │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── generate-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── generate-random-point-in-a-circle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── get-biggest-three-rhombus-sums-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── get-equal-substrings-within-budget │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── get-maximum-in-generated-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── global-and-local-inversions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── goat-latin │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── gray-code │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── greatest-common-divisor-of-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── greatest-common-divisor-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── greatest-english-letter-in-upper-and-lower-case │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── greatest-sum-divisible-by-three │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── grid-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── group-anagrams │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── group-the-people-given-the-group-size-they-belong-to │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── grumpy-bookstore-owner │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ └── guess-number-higher-or-lower │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── H │ ├── h-index-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── h-index │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── hamming-distance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── hand-of-straights │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── handling-sum-queries-after-update │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── happy-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── happy-students │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── harshad-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── hash-divided-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── height-checker │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── height-of-binary-tree-after-subtree-removal-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── high-access-employees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── house-robber-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── house-robber-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── house-robber-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── house-robber │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── how-many-numbers-are-smaller-than-the-current-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── I │ ├── identify-the-largest-outlier-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── image-overlap │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── image-smoother │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── implement-queue-using-stacks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── implement-rand10-using-rand7 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── implement-router │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── implement-stack-using-queues │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── implement-strstr │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── implement-trie-prefix-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── increasing-order-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── increasing-triplet-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── increment-submatrices-by-one │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── incremental-memory-leak │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── insert-delete-getrandom-o1 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── insert-greatest-common-divisors-in-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── insert-interval │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── insert-into-a-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── insertion-sort-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── integer-break │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── integer-replacement │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── integer-to-english-words │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── integer-to-roman │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── interleaving-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── intersection-of-two-arrays-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── intersection-of-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── intersection-of-two-linked-lists │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── interval-list-intersections │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── invalid-transactions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── invert-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── ipo │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── is-graph-bipartite │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── is-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── island-perimeter │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── isomorphic-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── iterator-for-combination │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── J │ ├── jewels-and-stones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── jump-game-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── jump-game-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── jump-game-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── jump-game-vi │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── jump-game-vii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── jump-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── K │ ├── k-closest-points-to-origin │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── k-diff-pairs-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── k-inverse-pairs-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── k-items-with-the-maximum-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── k-radius-subarray-averages │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── k-th-largest-perfect-subtree-size-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── k-th-nearest-obstacle-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── k-th-smallest-in-lexicographical-order │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── k-th-smallest-prime-fraction │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── k-th-symbol-in-grammar │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── keep-multiplying-found-values-by-two │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── keys-and-rooms │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kids-with-the-greatest-number-of-candies │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── knight-dialer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── knight-probability-in-chessboard │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── koko-eating-bananas │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-distinct-string-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── kth-largest-element-in-a-stream │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-largest-element-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-largest-sum-in-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-missing-positive-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-smallest-amount-with-single-denomination-combination │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── kth-smallest-element-in-a-bst │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-smallest-element-in-a-sorted-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── kth-smallest-number-in-multiplication-table │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── kth-smallest-product-of-two-sorted-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags ├── L │ ├── largest-3-same-digit-number-in-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── largest-color-value-in-a-directed-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-combination-with-bitwise-and-greater-than-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── largest-component-size-by-common-factor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-divisible-subset │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-element-in-an-array-after-merge-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-local-values-in-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-magic-square │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-odd-number-in-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-palindromic-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-perimeter-triangle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-plus-sign │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-positive-integer-that-exists-with-its-negative │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-rectangle-in-histogram │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-submatrix-with-rearrangements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── largest-substring-between-two-equal-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── largest-time-for-given-digits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── largest-triangle-area │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── last-day-where-you-can-still-cross │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── last-moment-before-all-ants-fall-out-of-a-plank │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── last-stone-weight │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── last-visited-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── latest-time-you-can-obtain-after-replacing-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── leaf-similar-trees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── least-number-of-unique-integers-after-k-removals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── left-and-right-sum-differences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── leftmost-column-with-at-least-a-one │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── lemonade-change │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── length-of-last-word │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── length-of-longest-fibonacci-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── length-of-longest-subarray-with-at-most-k-frequency │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── length-of-longest-v-shaped-diagonal-segment │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── length-of-the-longest-alphabetical-continuous-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── length-of-the-longest-increasing-path │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── length-of-the-longest-subsequence-that-sums-to-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── length-of-the-longest-valid-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── letter-case-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── letter-combinations-of-a-phone-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── letter-tile-possibilities │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── lexicographical-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ ├── Solution_naive.py │ │ └── tags │ ├── lexicographically-minimum-string-after-removing-stars │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── lexicographically-smallest-beautiful-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lexicographically-smallest-equivalent-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lexicographically-smallest-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lexicographically-smallest-string-after-a-swap │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── lexicographically-smallest-string-after-applying-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── lexicographically-smallest-string-after-operations-with-constraint │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── lexicographically-smallest-string-after-substring-operation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lfu-cache │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── linked-list-cycle-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── linked-list-cycle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── linked-list-in-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── linked-list-random-node │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longer-contiguous-segments-of-ones-than-zeros │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-alternating-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-arithmetic-subsequence-of-given-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-arithmetic-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-binary-subsequence-less-than-or-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-common-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-common-suffix-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-consecutive-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-cycle-in-a-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-duplicate-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-even-odd-subarray-with-threshold │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-happy-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-harmonious-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-ideal-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-increasing-path-in-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-increasing-subsequence-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-increasing-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-mountain-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-nice-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-non-decreasing-subarray-from-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-palindrome-by-concatenating-two-letter-words │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-palindromic-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-palindromic-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── longest-path-with-different-adjacent-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-special-path │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-square-streak-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-strictly-increasing-or-strictly-decreasing-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-string-chain │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-subarray-of-1s-after-deleting-one-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-subarray-with-maximum-bitwise-and │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-subsequence-repeated-k-times │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-subsequence-with-decreasing-adjacent-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-subsequence-with-limited-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-substring-of-all-vowels-in-order │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-substring-with-at-least-k-repeating-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-substring-without-repeating-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-turbulent-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-uncommon-subsequence-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-unequal-adjacent-groups-subsequence-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-unequal-adjacent-groups-subsequence-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── longest-univalue-path │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-uploaded-prefix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-valid-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-word-in-dictionary-through-deleting │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-word-in-dictionary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── longest-zigzag-path-in-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lowest-common-ancestor-of-a-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lowest-common-ancestor-of-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── lru-cache │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── lucky-numbers-in-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags ├── M │ ├── magic-squares-in-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── magnetic-force-between-two-balls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── majority-element-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── majority-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── make-a-square-with-the-same-color │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── make-array-elements-equal-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── make-array-empty │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-array-strictly-increasing │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-array-zero-by-subtracting-equal-amounts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-costs-of-paths-equal-in-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-k-subarray-sums-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-lexicographically-smallest-array-by-swapping-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── make-number-of-distinct-characters-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-string-a-subsequence-using-cyclic-increments │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-sum-divisible-by-p │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── make-the-string-great │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── make-three-strings-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── make-two-arrays-equal-by-reversing-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── making-a-large-island │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── manhattan-distances-of-all-arrangements-of-pieces │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── map-of-highest-peak │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── map-sum-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── mark-elements-on-array-by-performing-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── match-substring-after-replacement │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── matchsticks-to-square │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── matrix-diagonal-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── matrix-similarity-after-cyclic-shifts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── max-area-of-island │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-chunks-to-make-sorted │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── max-consecutive-ones-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-consecutive-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-difference-you-can-get-from-changing-an-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── max-dot-product-of-two-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-number-of-k-sum-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-pair-sum-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-points-on-a-line │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-sum-of-a-pair-with-equal-sum-of-digits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── max-sum-of-rectangle-no-larger-than-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximal-network-rank │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximal-rectangle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximal-score-after-applying-k-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximal-square │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-amount-after-two-days-of-conversions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-area-of-square-hole-in-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-consecutive-elements-in-an-array-after-modification │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-distance-to-closest-person │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-greatness-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-happiness-of-selected-children │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-number-of-nice-divisors │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-score-after-n-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-score-of-numbers-in-ranges │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-subarray-sum-after-removing-all-occurrences-of-one-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-subarrays-after-removing-one-conflicting-pair │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-sum-of-weights-after-edge-removals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-the-confusion-of-an-exam │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-the-minimum-game-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-the-minimum-powered-city │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-the-number-of-partitions-after-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-the-number-of-target-nodes-after-connecting-trees-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-the-number-of-target-nodes-after-connecting-trees-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-the-profit-as-the-salesman │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-the-total-height-of-unique-towers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-total-cost-of-alternating-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximize-value-of-function-in-a-ball-passing-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximize-win-from-two-segments │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-69-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-absolute-sum-of-any-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-alternating-subsequence-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-amount-of-money-robot-can-earn │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-and-minimum-sums-of-at-most-size-k-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-and-minimum-sums-of-at-most-size-k-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-area-of-longest-diagonal-rectangle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-area-rectangle-with-point-constraints-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── maximum-area-rectangle-with-point-constraints-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-ascending-subarray-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-average-pass-ratio │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-bags-with-full-capacity-of-rocks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-balanced-subsequence-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-beauty-of-an-array-after-applying-operation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-building-height │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-candies-allocated-to-k-children │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-candies-you-can-get-from-boxes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-coins-from-k-consecutive-bags │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-count-of-positive-integer-and-negative-integer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-deletions-on-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-depth-of-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-difference-between-adjacent-elements-in-a-circular-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-difference-between-even-and-odd-frequency-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-difference-between-even-and-odd-frequency-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-difference-between-increasing-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-difference-between-node-and-ancestor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-difference-by-remapping-a-digit │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-difference-score-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-distance-between-a-pair-of-values │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-distance-in-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-elegance-of-a-k-length-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-element-after-decreasing-and-rearranging │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-element-sum-of-a-complete-subset-of-indices │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-employees-to-be-invited-to-a-meeting │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-enemy-forts-that-can-be-captured │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-energy-boost-from-two-drinks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-erasure-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-frequency-after-subarray-operation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-frequency-of-an-element-after-performing-operations-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-frequency-of-an-element-after-performing-operations-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-frequency-stack │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-fruits-harvested-after-at-most-k-steps │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-gap │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-good-subarray-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-height-of-a-triangle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-ice-cream-bars │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-length-of-a-concatenated-string-with-unique-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-length-of-pair-chain │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-length-of-repeated-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-length-substring-with-two-occurrences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-level-sum-of-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-manhattan-distance-after-k-changes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-matching-of-players-with-trainer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-matrix-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-multiplication-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-nesting-depth-of-the-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-nesting-depth-of-two-valid-parentheses-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-achievable-transfer-requests │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-alloys │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-balloons │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-coins-you-can-get │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-of-consecutive-values-you-can-make │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-distinct-elements-after-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-of-events-that-can-be-attended-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-events-that-can-be-attended │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-fish-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-groups-entering-a-competition │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-groups-getting-fresh-donuts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-groups-with-increasing-length │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-integers-to-choose-from-a-range-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-jumps-to-reach-the-last-index │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-k-divisible-components │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-moves-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-moves-to-kill-all-pawns │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-non-overlapping-palindrome-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-operations-to-move-ones-to-the-end │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-of-operations-with-the-same-score-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-of-operations-with-the-same-score-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-of-pairs-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-points-from-grid-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-points-with-cost │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-removable-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-robots-within-budget │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── suboptimal │ │ │ └── Solution.cpp │ │ └── tags │ ├── maximum-number-of-tasks-you-can-assign │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-of-vowels-in-a-substring-of-given-length │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-number-of-words-you-can-type │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-number-that-sum-of-the-prices-is-less-than-or-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-odd-binary-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-or │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-palindromes-after-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-performance-of-a-team │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-points-after-collecting-coins-from-all-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-points-after-enemy-battles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-points-inside-the-square │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-points-tourist-can-earn │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-points-you-can-obtain-from-cards │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-population-year │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-possible-number-by-binary-concatenation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-prime-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-product-difference-between-two-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-product-of-splitted-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-product-of-two-elements-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-product-of-word-lengths │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-product-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-profit-in-job-scheduling │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-rows-covered-by-columns │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-running-time-of-n-computers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-score-after-applying-operations-on-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-score-after-splitting-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-score-from-grid-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-score-from-performing-multiplication-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-score-from-removing-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-score-of-a-good-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-score-of-non-overlapping-intervals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-score-of-spliced-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-score-words-formed-by-letters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-segment-sum-after-removals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-size-of-a-set-after-removals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-spending-after-buying-items │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-square-area-by-removing-fences-from-a-field │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-star-sum-of-a-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-strength-of-a-group │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-strength-of-k-disjoint-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-strictly-increasing-cells-in-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-strong-pair-xor-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-strong-pair-xor-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-subarray-min-product │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-subarray-sum-with-length-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-subarray-with-equal-products │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-subsequence-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-sum-circular-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-sum-of-3-non-overlapping-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-sum-of-almost-unique-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-sum-of-an-hourglass │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-sum-of-distinct-subarrays-with-length-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-sum-of-subsequence-with-non-adjacent-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-sum-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-sum-with-exactly-k-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-swap │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-tastiness-of-candy-basket │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-total-damage-with-spell-casting │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-total-importance-of-roads │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-total-reward-using-operations-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-total-reward-using-operations-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-twin-sum-of-a-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-unique-subarray-sum-after-deletion │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-units-on-a-truck │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-value-after-insertion │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-value-at-a-given-index-in-a-bounded-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-value-of-a-string-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-value-of-an-ordered-triplet-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-value-of-an-ordered-triplet-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-value-of-k-coins-from-piles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-value-sum-by-placing-three-rooks-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-value-sum-by-placing-three-rooks-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-width-of-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-width-ramp │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-xor-after-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-xor-for-each-query │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-xor-of-two-numbers-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── maximum-xor-product │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── maximum-xor-score-subarray-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── median-of-two-sorted-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── meeting-rooms-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-in-between-linked-lists │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-intervals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-k-sorted-lists │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-nodes-in-between-zeros │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── merge-similar-items │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-strings-alternately │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-triplets-to-form-target-triplet │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-two-2d-arrays-by-summing-values │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── merge-two-sorted-lists │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── mice-and-cheese │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── middle-of-the-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── min-cost-climbing-stairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── min-cost-to-connect-all-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── min-max-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── min-stack │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-deviation-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-length-of-array-using-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimize-manhattan-distances │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimize-maximum-of-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-maximum-pair-sum-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-or-of-remaining-elements-using-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimize-string-length │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-the-maximum-adjacent-element-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimize-the-maximum-difference-of-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-the-maximum-edge-weight-of-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimize-the-maximum-of-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-the-total-price-of-the-trips │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimize-xor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimized-maximum-of-products-distributed-to-any-store │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-absolute-difference-between-elements-with-constraint │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-absolute-difference-in-bst │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-absolute-difference-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-absolute-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-absolute-sum-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-add-to-make-parentheses-valid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-addition-to-make-integer-beautiful │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-additions-to-make-valid-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-adjacent-swaps-to-reach-the-kth-smallest-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-amount-of-damage-dealt-to-bob │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-amount-of-time-to-collect-garbage │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-amount-of-time-to-fill-cups │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-array-changes-to-make-differences-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-array-end │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-array-length-after-pair-removals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-array-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-ascii-delete-sum-for-two-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-average-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-average-of-smallest-and-largest-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-bit-flips-to-convert-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-changes-to-make-alternating-binary-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-changes-to-make-k-semi-palindromes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-common-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-for-cutting-cake-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-for-cutting-cake-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-for-tickets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-good-caption │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-of-a-path-with-special-roads │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-to-change-the-final-value-of-expression │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-to-convert-string-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-convert-string-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-cut-a-stick │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-to-equalize-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-hire-k-workers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-make-all-characters-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-to-make-array-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-to-make-array-equalindromic │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-make-arrays-identical │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-make-at-least-one-valid-path-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-merge-stones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cost-to-move-chips-to-the-same-position │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-to-split-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-cost-walk-in-weighted-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-cuts-to-divide-a-circle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-deletions-to-make-array-divisible │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-deletions-to-make-character-frequencies-unique │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-deletions-to-make-string-balanced │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-deletions-to-make-string-k-special │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-depth-of-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-difference-between-largest-and-smallest-value-in-three-moves │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-difference-in-sums-after-removal-of-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-difficulty-of-a-job-schedule │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── minimum-distance-between-bst-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-distance-to-the-target-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-division-operations-to-make-array-non-decreasing │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── minimum-domino-rotations-for-equal-row │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-edge-reversals-so-every-node-is-reachable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-edge-weight-equilibrium-queries-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-element-after-replacement-with-digit-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-equal-sum-of-two-arrays-after-replacing-zeros │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-falling-path-sum-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-falling-path-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-flips-to-make-a-or-b-equal-to-c │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-fuel-cost-to-report-to-the-capital │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-genetic-mutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-height-trees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-hours-of-training-to-win-a-competition │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-impossible-or │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-increment-operations-to-make-array-beautiful │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-increment-to-make-array-unique │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-increments-for-target-multiples-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-index-of-a-valid-split │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-insertion-steps-to-make-a-string-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-interval-to-include-each-query │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-length-of-anagram-concatenation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-length-of-string-after-deleting-similar-ends │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-length-of-string-after-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-levels-to-gain-more-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-limit-of-balls-in-a-bag │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-money-required-before-transactions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-moves-to-capture-the-queen │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-moves-to-equal-array-elements-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-moves-to-pick-k-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-moves-to-spread-stones-over-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-arrows-to-burst-balloons │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-chairs-in-a-waiting-room │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-changes-to-make-binary-string-beautiful │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-coins-for-fruits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-coins-to-be-added │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-days-to-disconnect-island │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-days-to-eat-n-oranges │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-days-to-make-m-bouquets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-flips-to-make-binary-grid-palindromic-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-flips-to-make-binary-grid-palindromic-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-flips-to-make-the-binary-string-alternating │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-groups-to-create-a-valid-assignment │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-increments-on-subarrays-to-form-a-target-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-k-consecutive-bit-flips │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-moves-to-seat-everyone │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-make-all-array-elements-equal-to-1 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-operations-to-make-array-continuous │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-make-array-empty │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-operations-to-make-array-xor-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-make-arrays-similar │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-make-elements-in-array-distinct │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-make-string-sorted │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-operations-to-make-word-k-periodic │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-make-x-and-y-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-move-all-balls-to-each-box │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-reinitialize-a-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-operations-to-satisfy-conditions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-operations-to-sort-a-binary-tree-by-level │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-people-to-teach │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-pushes-to-type-word-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-pushes-to-type-word-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-refueling-stops │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-removals-to-make-mountain-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-seconds-to-make-mountain-height-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-steps-to-make-two-strings-anagram │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-swaps-to-make-the-binary-string-alternating │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-swaps-to-make-the-string-balanced │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-taps-to-open-to-water-a-garden │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-valid-strings-to-form-target-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-valid-strings-to-form-target-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-number-of-vertices-to-reach-all-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-number-of-visited-cells-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-obstacle-removal-to-reach-corner │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-one-bit-operations-to-make-integers-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-collect-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-convert-all-elements-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-convert-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-exceed-threshold-value-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-exceed-threshold-value-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-form-subsequence-with-target-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-make-a-special-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-make-a-uni-value-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-all-array-elements-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-make-array-elements-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-array-equal-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-make-array-equal-to-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-array-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-make-array-sum-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-array-values-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-binary-array-elements-equal-to-one-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-binary-array-elements-equal-to-one-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-character-frequencies-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-columns-strictly-increasing │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-median-of-array-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-make-the-array-increasing │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-make-the-integer-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-maximize-last-elements-in-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-operations-to-reduce-an-integer-to-0 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-reduce-x-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-operations-to-write-the-letter-y-on-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-path-cost-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-path-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-penalty-for-a-shop │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-positive-sum-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-processing-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-recolors-to-get-k-consecutive-black-blocks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-rectangles-to-cover-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-remove-to-make-valid-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-replacements-to-sort-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-reverse-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-right-shifts-to-sort-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-rounds-to-complete-all-tasks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-score-after-removals-on-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-score-by-changing-two-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-score-of-a-path-between-two-cities │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-score-triangulation-of-polygon │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-seconds-to-equalize-a-circular-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-sideway-jumps │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-size-subarray-in-infinite-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-size-subarray-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-skips-to-arrive-at-meeting-on-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-space-wasted-from-packaging │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-speed-to-arrive-on-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-string-length-after-removing-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-substring-partition-of-equal-character-frequency │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-sum-of-mountain-triplets-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-sum-of-mountain-triplets-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-sum-of-squared-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-sum-of-values-by-dividing-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-swaps-to-group-all-1s-together-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-time-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-time-to-break-locks-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-time-to-collect-all-apples-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-complete-all-tasks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-complete-trips │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-make-array-sum-at-most-x │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-make-rope-colorful │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-remove-all-cars-containing-illegal-goods │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-repair-cars │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-revert-word-to-initial-state-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-time-to-revert-word-to-initial-state-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-time-to-visit-a-cell-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-to-visit-disappearing-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-time-visiting-all-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── minimum-total-cost-to-make-arrays-unequal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-total-distance-traveled │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-value-to-get-positive-step-by-step-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-window-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── minimum-xor-sum-of-two-arrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── mirror-reflection │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── missing-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── modify-graph-edge-weights │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── modify-the-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── monotonic-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── most-beautiful-item-for-each-query │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── most-frequent-even-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── most-frequent-ids │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── most-frequent-prime │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── most-popular-video-creator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── most-profit-assigning-work │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── most-profitable-path-in-a-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── most-stones-removed-with-same-row-or-column │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── move-pieces-to-obtain-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── move-zeroes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── movement-of-robots │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── multiply-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── my-calendar-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── my-calendar-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ └── my-calendar-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── N │ ├── n-ary-tree-level-order-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── n-ary-tree-postorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── n-ary-tree-preorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── n-queens-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── n-queens │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── n-th-tribonacci-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── naming-a-company │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── nearest-exit-from-entrance-in-maze │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── neighboring-bitwise-xor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── neither-minimum-nor-maximum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── network-delay-time │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── new-21-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── next-greater-element-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── next-greater-element-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── next-greater-element-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── next-greater-element-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── next-greater-numerically-balanced-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── next-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── node-with-highest-edge-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── non-decreasing-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── non-decreasing-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── non-negative-integers-without-consecutive-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── non-overlapping-intervals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── nth-magical-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-complement │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-1-bits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-adjacent-elements-with-the-same-color │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-arithmetic-triplets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-atoms │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-beautiful-integers-in-the-range │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-beautiful-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-beautiful-partitions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-bit-changes-to-make-two-integers-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-black-blocks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-changing-keys │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-closed-islands │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-common-factors │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-dice-rolls-with-target-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-different-integers-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-different-subsequences-gcds │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-digit-one │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-distinct-averages │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-distinct-roll-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-employees-who-met-the-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-enclaves │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-equivalent-domino-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-even-and-odd-bits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-excellent-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-flowers-in-full-bloom │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-good-leaf-nodes-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-good-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-good-paths │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-great-partitions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-increasing-paths-in-a-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-islands │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-laser-beams-in-a-bank │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-longest-increasing-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-matching-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-music-playlists │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-nodes-in-the-sub-tree-with-the-same-label │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-operations-to-make-network-connected │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-orders-in-the-backlog │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-pairs-satisfying-inequality │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-people-aware-of-a-secret │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-possible-sets-of-closing-branches │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-provinces │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-recent-calls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-senior-citizens │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-steps-to-reduce-a-number-in-binary-representation-to-one │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-steps-to-reduce-a-number-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-strings-which-can-be-rearranged-to-contain-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-students-unable-to-eat-lunch │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-sub-arrays-with-odd-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-subarrays-that-match-a-pattern-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-subarrays-that-match-a-pattern-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-subarrays-with-and-value-of-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-subarrays-with-bounded-maximum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-subarrays-with-gcd-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-subarrays-with-lcm-equal-to-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-submatrices-that-sum-to-target │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-subsequences-that-satisfy-the-given-sum-condition │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-substrings-containing-all-three-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-substrings-with-only-1s │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-unequal-triplets-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-valid-clock-times │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-valid-words-for-each-puzzle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-ways-of-cutting-a-pizza │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-arrive-at-destination │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-divide-a-long-corridor │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-ways-to-earn-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-form-a-target-string-given-a-dictionary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-paint-n-3-grid │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-reach-a-position-after-exactly-k-steps │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-rearrange-sticks-with-k-sticks-visible │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-reorder-array-to-get-same-bst │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── number-of-ways-to-split-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-ways-to-stay-in-the-same-place-after-some-steps │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-wonderful-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── number-of-zero-filled-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── numbers-at-most-n-given-digit-set │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── numbers-with-same-consecutive-differences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── O │ ├── odd-even-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── odd-string-difference │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── ones-and-zeroes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── online-majority-element-in-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── online-stock-span │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── open-the-lock │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── optimal-partition-of-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── orderly-queue │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── out-of-boundary-paths │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── P │ ├── pacific-atlantic-water-flow │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── paint-house-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── paint-house-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── painting-a-grid-with-three-different-colors │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── painting-the-walls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── pairs-of-songs-with-total-durations-divisible-by-60 │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-partitioning-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-partitioning-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-partitioning-iv │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-partitioning │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── palindrome-rearrangement-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── palindromic-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── pancake-sorting │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── parallel-courses-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── parsing-a-boolean-expression │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── partition-array-according-to-given-pivot │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── partition-array-for-maximum-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── partition-array-into-disjoint-intervals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-array-such-that-maximum-difference-is-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-equal-subset-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-labels │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-string-into-minimum-beautiful-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-string-into-substrings-with-values-at-most-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partition-to-k-equal-sum-subsets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── partitioning-into-minimum-number-of-deci-binary-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── pascals-triangle-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── pascals-triangle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── pass-the-pillow │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── patching-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── path-crossing │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── path-sum-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── path-sum-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── path-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── path-with-maximum-gold │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── path-with-maximum-probability │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── path-with-minimum-effort │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── paths-in-matrix-whose-sum-is-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── peak-index-in-a-mountain-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── peaks-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── peeking-iterator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── perfect-squares │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── perform-string-shifts │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── permutation-difference-between-two-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── permutation-in-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── permutation-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── permutations-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── permutations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── pizza-with-3n-slices │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── plus-one │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── points-that-intersect-with-cars │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── poor-pigs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── populating-next-right-pointers-in-each-node-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── populating-next-right-pointers-in-each-node │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── possible-bipartition │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── power-grid-maintenance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── power-of-four │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── power-of-heroes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── power-of-three │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── power-of-two │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── powerful-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── powx-n │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── predict-the-winner │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── prefix-and-suffix-search │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── prime-in-diagonal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── prime-pairs-with-target-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── prime-subtraction-operation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── print-foobar-alternately │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── print-in-order │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── print-zero-even-odd │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── prison-cells-after-n-days │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── probability-of-a-two-boxes-having-the-same-number-of-distinct-balls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── process-tasks-using-servers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── product-of-array-except-self │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── product-of-the-last-k-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── pseudo-palindromic-paths-in-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── push-dominoes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── put-marbles-in-bags │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── Q │ ├── queries-on-number-of-points-inside-a-circle │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── query-kth-smallest-trimmed-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── queue-reconstruction-by-height │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── R │ ├── rabbits-in-forest │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── random-pick-with-weight │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── random-point-in-non-overlapping-rectangles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── range-addition-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── range-module │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── range-product-queries-of-powers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── range-sum-of-bst │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── range-sum-of-sorted-subarray-sums │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── range-sum-query-2d-immutable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── range-sum-query-immutable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── range-sum-query-mutable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── rank-transform-of-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── rank-transform-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── ransom-note │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reach-a-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reach-end-of-array-with-max-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reachable-nodes-in-subdivided-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reachable-nodes-with-restrictions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── rearrange-array-elements-by-sign │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── rearrange-array-to-maximize-prefix-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── rearrange-k-substrings-to-form-target-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── rearranging-fruits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reconstruct-itinerary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reconstruct-original-digits-from-english │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── recover-a-tree-from-preorder-traversal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── recover-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── rectangle-area-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── rectangle-area │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── redistribute-characters-to-make-all-strings-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reduce-array-size-to-the-half │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reducing-dishes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reduction-operations-to-make-the-array-elements-equal │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── redundant-connection │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── regions-cut-by-slashes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── relative-ranks │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── relative-sort-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── relocate-marbles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-adjacent-almost-equal-characters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── remove-all-adjacent-duplicates-in-string-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-all-adjacent-duplicates-in-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-all-occurrences-of-a-substring │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-boxes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-colored-pieces-if-both-neighbors-are-the-same-color │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── remove-covered-intervals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-duplicate-letters │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-duplicates-from-sorted-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-duplicates-from-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-duplicates-from-sorted-list-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── remove-element │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-invalid-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-k-digits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── remove-letter-to-equalize-frequency │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-linked-list-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-max-number-of-edges-to-keep-graph-fully-traversable │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-methods-from-project │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── remove-nodes-from-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-nth-node-from-end-of-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-one-element-to-make-the-array-strictly-increasing │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-palindromic-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-stones-to-minimize-the-total │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-sub-folders-from-the-filesystem │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── remove-trailing-zeros-from-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── remove-zero-sum-consecutive-nodes-from-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── removing-stars-from-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reorder-list │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reorder-routes-to-make-all-paths-lead-to-the-city-zero │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reordered-power-of-2 │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reorganize-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── repeated-dna-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── repeated-substring-pattern │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── replace-all-digits-with-characters │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── replace-elements-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── replace-non-coprime-numbers-in-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── replace-question-marks-in-string-to-minimize-its-value │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── replace-words │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── report-spam-message │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reschedule-meetings-for-maximum-free-time-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reschedule-meetings-for-maximum-free-time-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reshape-the-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── restore-ip-addresses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── restore-the-array-from-adjacent-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── restore-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reveal-cards-in-increasing-order │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reverse-bits │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-linked-list-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-nodes-in-k-group │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-odd-levels-of-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reverse-only-letters │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-prefix-of-word │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reverse-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reverse-substrings-between-each-pair-of-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── reverse-vowels-of-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reverse-words-in-a-string-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── reverse-words-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── reward-top-k-students │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── richest-customer-wealth │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── right-triangles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── robot-bounded-in-circle │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── robot-collisions │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── roman-to-integer │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── rotate-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── rotate-image │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── rotate-list │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── rotate-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── rotating-the-box │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── rotting-oranges │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── row-with-maximum-ones │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── running-sum-of-1d-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ └── russian-doll-envelopes │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp ├── S │ ├── same-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── satisfiability-of-equality-equations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── score-after-flipping-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── score-of-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── score-of-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── scramble-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-a-2d-matrix-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-a-2d-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-in-a-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-in-rotated-sorted-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-in-rotated-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-insert-position │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── search-suggestions-system │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── seat-reservation-manager │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── second-largest-digit-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── second-minimum-time-to-reach-destination │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── select-cells-in-grid-with-maximum-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sell-diminishing-valued-colored-balls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── selling-pieces-of-wood │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── semi-ordered-permutation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sentence-similarity-iii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── separate-black-and-white-balls │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── separate-the-digits-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sequential-digits │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── serialize-and-deserialize-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── serialize-and-deserialize-bst │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── set-intersection-size-at-least-two │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── set-matrix-zeroes │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── set-mismatch │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shift-2d-grid │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shift-distance-between-two-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shifting-letters-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shifting-letters │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── short-encoding-of-words │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-and-lexicographically-smallest-beautiful-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-bridge │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── shortest-common-supersequence │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-cycle-in-a-graph │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── shortest-distance-after-road-addition-queries-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-distance-after-road-addition-queries-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-distance-to-a-character │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-distance-to-target-string-in-a-circular-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── shortest-impossible-sequence-of-rolls │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-path-in-a-grid-with-obstacles-elimination │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-path-in-binary-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-path-to-get-all-keys │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── shortest-path-visiting-all-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-path-with-alternating-colors │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── shortest-string-that-contains-three-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── shortest-subarray-to-be-removed-to-make-array-sorted │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-subarray-with-or-at-least-k-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-subarray-with-or-at-least-k-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-subarray-with-sum-at-least-k │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shortest-uncommon-substring-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── shortest-unsorted-continuous-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shuffle-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── shuffle-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sign-of-the-product-of-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── similar-string-groups │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── simple-bank-system │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── simplify-path │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── single-element-in-a-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── single-number-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── Solution.py │ ├── single-number-iii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── single-number │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── single-threaded-cpu │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sliding-puzzle │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sliding-subarray-beauty │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sliding-window-maximum │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sliding-window-median │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── slowest-key │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-divisible-digit-product-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-divisible-digit-product-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-even-multiple │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── smallest-integer-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-missing-integer-greater-than-sequential-prefix-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-missing-non-negative-integer-after-operations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── smallest-number-in-infinite-set │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-number-with-all-set-bits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-range-covering-elements-from-k-lists │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-range-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-string-starting-from-leaf │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-string-with-a-given-numeric-value │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-string-with-swaps │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-subarrays-with-maximum-bitwise-or │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── smallest-substring-with-identical-characters-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-substring-with-identical-characters-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── smallest-subtree-with-all-the-deepest-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── smallest-sufficient-team │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── smallest-value-after-replacing-with-sum-of-prime-factors │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── snake-in-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── snakes-and-ladders │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── snapshot-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── solving-questions-with-brainpower │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sort-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sort-array-by-increasing-frequency │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-array-by-parity-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-array-by-parity │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-characters-by-frequency │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-colors │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-integers-by-the-number-of-1-bits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sort-integers-by-the-power-value │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-items-by-groups-respecting-dependencies │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-list │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-matrix-by-diagonals │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sort-the-jumbled-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sort-the-matrix-diagonally │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sort-the-people │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sort-the-students-by-their-kth-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sort-vowels-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sorted-gcd-pair-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sorting-the-sentence │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sorting-three-groups │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── soup-servings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── special-array-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── special-array-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── special-array-with-x-elements-greater-than-or-equal-x │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── special-permutations │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── special-positions-in-a-binary-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── spiral-matrix-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── spiral-matrix-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── spiral-matrix-iv │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── spiral-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── split-a-string-into-the-max-number-of-unique-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── split-array-into-consecutive-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── split-array-into-maximum-number-of-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── split-array-largest-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── split-linked-list-in-parts │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── split-message-based-on-limit │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── split-strings-by-separator │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── split-the-array-to-make-coprime-products │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── split-the-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── split-with-minimum-sum │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── splitting-a-string-into-descending-consecutive-values │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sqrtx │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── squares-of-a-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stamping-the-sequence │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── step-by-step-directions-from-a-binary-tree-node-to-another │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── steps-to-make-array-non-decreasing │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stone-game-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stone-game-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── stone-game-iv │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stone-game-vii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stone-game-viii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stone-game │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── stone-removal-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── strange-printer │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── stream-of-characters │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── strictly-palindromic-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── string-compression-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── string-compression-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── string-compression │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── string-matching-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── string-to-integer-atoi │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── string-transformation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── strong-password-checker-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── subarray-product-less-than-k │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── subarray-sum-equals-k │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── subarray-sums-divisible-by-k │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── subarray-with-elements-greater-than-varying-threshold │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── subarrays-distinct-element-sum-of-squares-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── subarrays-distinct-element-sum-of-squares-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── subarrays-with-k-different-integers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── subsequence-with-the-minimum-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── subsequences-with-a-unique-middle-mode-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── subsets-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── subsets │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── substring-matching-pattern │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── substring-with-concatenation-of-all-words │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── substring-with-largest-variance │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── substring-xor-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── substrings-of-size-three-with-distinct-characters │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── subtree-of-another-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── successful-pairs-of-spells-and-potions │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sudoku-solver │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── sum-in-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-multiples │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-absolute-differences-in-a-sorted-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sum-of-all-subset-xor-totals │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-beauty-of-all-substrings │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-digit-differences-of-all-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sum-of-digits-in-base-k │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-digits-of-string-after-convert │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sum-of-distances-in-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-distances │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-even-numbers-after-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-floored-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-good-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sum-of-imbalance-numbers-of-all-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-k-mirror-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sum-of-left-leaves │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-matrix-after-queries │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-number-and-its-reverse │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-numbers-with-units-digit-k │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-prefix-scores-of-strings │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-root-to-leaf-binary-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-square-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── sum-of-squares-of-special-elements │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-subarray-minimums │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-values-at-indices-with-k-set-bits │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── sum-of-variable-length-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── sum-root-to-leaf-numbers │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── summary-ranges │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── super-palindromes │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── super-washing-machines │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── surrounded-regions │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── swap-nodes-in-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── swapping-nodes-in-a-linked-list │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── swim-in-rising-water │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ └── symmetric-tree │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── T │ ├── take-gifts-from-the-richest-pile │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── take-k-of-each-character-from-left-and-right │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── taking-maximum-energy-from-the-mystic-dungeon │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── tallest-billboard │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── target-sum │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── task-scheduler-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── task-scheduler │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── teemo-attacking │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── tenth-line │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.bash │ ├── text-justification │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-dining-philosophers │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-earliest-and-latest-rounds-where-players-compete │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-employee-that-worked-on-the-longest-task │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── the-k-th-lexicographical-string-of-all-happy-strings-of-length-n │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── the-k-weakest-rows-in-a-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-kth-factor-of-n │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-latest-time-to-catch-a-bus │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-number-of-beautiful-subsets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── the-number-of-full-rounds-you-have-played │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-number-of-the-smallest-unoccupied-chair │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── the-number-of-weak-characters-in-the-game │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── the-skyline-problem │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── the-two-sneaky-numbers-of-digitville │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── three-consecutive-odds │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── three-equal-parts │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── time-based-key-value-store │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── time-needed-to-buy-tickets │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── time-needed-to-inform-all-employees │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── time-needed-to-rearrange-a-binary-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── time-taken-to-mark-all-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── time-to-cross-a-bridge │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── to-lower-case │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── toeplitz-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── top-k-frequent-elements │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── top-k-frequent-words │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── total-appeal-of-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── total-characters-in-string-after-transformations-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── total-characters-in-string-after-transformations-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── total-cost-to-hire-k-workers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── total-distance-traveled │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── transform-to-chessboard │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── transformed-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── transpose-matrix │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── trapping-rain-water-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── trapping-rain-water │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── triangle │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── trim-a-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── triples-with-bitwise-and-equal-to-zero │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── truncate-sentence │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── tuple-with-same-product │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── two-best-non-overlapping-events │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── two-city-scheduling │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── two-sum-ii-input-array-is-sorted │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── two-sum-iv-input-is-a-bst │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── two-sum │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ └── type-of-triangle-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags ├── U │ ├── ugly-number-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── ugly-number │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── uncommon-words-from-two-sentences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── uncrossed-lines │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-binary-search-trees-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-binary-search-trees │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-email-addresses │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-length-3-palindromic-subsequences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── unique-morse-code-words │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-number-of-occurrences │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution.py │ │ └── tags │ ├── unique-paths-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-paths-iii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── unique-paths │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── using-a-robot-to-print-the-lexicographically-smallest-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── utf-8-validation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── V │ ├── valid-anagram │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-arrangement-of-pairs │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── valid-mountain-array │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-number │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-palindrome-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-palindrome │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-parentheses │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-parenthesis-string │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-perfect-square │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-square │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-sudoku │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-triangle-number │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── valid-word │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── validate-binary-search-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── validate-binary-tree-nodes │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── validate-ip-address │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── validate-stack-sequences │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── verify-preorder-serialization-of-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── verifying-an-alien-dictionary │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── vertical-order-traversal-of-a-binary-tree │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── visit-array-positions-to-maximize-score │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── vowel-spellchecker │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ └── vowels-game-in-a-string │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags ├── W │ ├── walking-robot-simulation │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── water-bottles-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── water-bottles │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── ways-to-express-an-integer-as-sum-of-powers │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── ways-to-split-array-into-good-subarrays │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── where-will-the-ball-fall │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ ├── widest-vertical-area-between-two-points-containing-no-points │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── wiggle-subsequence │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── wildcard-matching │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-break-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-break │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-ladder-ii │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-ladder │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-pattern │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-search-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ ├── Solution_suboptimal.cpp │ │ └── tags │ ├── word-search │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ ├── word-subsets │ │ ├── README.md │ │ ├── README.md.base │ │ └── Solution.cpp │ └── words-within-two-edits-of-dictionary │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags ├── X │ ├── xor-operation-in-an-array │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ └── xor-queries-of-a-subarray │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags ├── Z │ ├── zero-array-transformation-i │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── zero-array-transformation-ii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── zero-array-transformation-iii │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags │ ├── zigzag-conversion │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.cpp │ │ └── tags │ └── zigzag-grid-traversal-with-skip │ │ ├── README.md │ │ ├── README.md.base │ │ ├── Solution.py │ │ └── tags └── tags └── tag_processor ├── add-tags.sh ├── compile_flags.txt ├── pre-commit ├── problem_readme_base_gen.sh ├── tag_rename.sh └── taggen.cpp /Collections/chatgpt.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/chatgpt.md -------------------------------------------------------------------------------- /Collections/deque.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/deque.md -------------------------------------------------------------------------------- /Collections/fraud.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/fraud.md -------------------------------------------------------------------------------- /Collections/greedy.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/greedy.md -------------------------------------------------------------------------------- /Collections/hashmap.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/hashmap.md -------------------------------------------------------------------------------- /Collections/matrix.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/matrix.md -------------------------------------------------------------------------------- /Collections/prefix.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/prefix.md -------------------------------------------------------------------------------- /Collections/queue.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/queue.md -------------------------------------------------------------------------------- /Collections/sorting.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/sorting.md -------------------------------------------------------------------------------- /Collections/stack.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/stack.md -------------------------------------------------------------------------------- /Collections/string.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/string.md -------------------------------------------------------------------------------- /Collections/tree.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/tree.md -------------------------------------------------------------------------------- /Collections/trie.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Collections/trie.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/README.md -------------------------------------------------------------------------------- /Solutions/0-9/01-matrix/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/0-9/1-bit-and-2-bit-characters/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/0-9/132-pattern/tags: -------------------------------------------------------------------------------- 1 | Prefix>Extremum 2 | Binary search>C++ set 3 | -------------------------------------------------------------------------------- /Solutions/0-9/3sum-closest/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/0-9/3sum-with-multiplicity/tags: -------------------------------------------------------------------------------- 1 | Counting elements in array 2 | Mathematics>Combinatorics 3 | -------------------------------------------------------------------------------- /Solutions/0-9/3sum/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/0-9/4sum-ii/tags: -------------------------------------------------------------------------------- 1 | Meet in the middle 2 | -------------------------------------------------------------------------------- /Solutions/0-9/4sum/tags: -------------------------------------------------------------------------------- 1 | Meet in the middle 2 | -------------------------------------------------------------------------------- /Solutions/A/accounts-merge/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/A/add-binary/tags: -------------------------------------------------------------------------------- 1 | Integer operations on strings 2 | -------------------------------------------------------------------------------- /Solutions/A/add-digits/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/A/add-edges-to-make-degrees-of-all-nodes-even/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Degree counting 2 | -------------------------------------------------------------------------------- /Solutions/A/add-strings/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | -------------------------------------------------------------------------------- /Solutions/A/advantage-shuffle/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/A/alice-and-bob-playing-flower-game/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/A/all-elements-in-two-binary-search-trees/tags: -------------------------------------------------------------------------------- 1 | Tree>Binary search tree>Traversal 2 | -------------------------------------------------------------------------------- /Solutions/A/ambiguous-coordinates/tags: -------------------------------------------------------------------------------- 1 | String>Validation 2 | -------------------------------------------------------------------------------- /Solutions/A/angle-between-hands-of-a-clock/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/A/append-characters-to-string-to-make-subsequence/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | String>Subsequence 3 | -------------------------------------------------------------------------------- /Solutions/A/apple-redistribution-into-boxes/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/A/apply-bitwise-operations-to-make-strings-equal/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/A/apply-operations-on-array-to-maximize-sum-of-squares/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/A/apply-operations-to-make-string-empty/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/A/arithmetic-slices-ii-subsequence/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | Mathematics>Combinatorics 3 | -------------------------------------------------------------------------------- /Solutions/A/arithmetic-slices/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/A/array-nesting/tags: -------------------------------------------------------------------------------- 1 | Permutation>Cycle 2 | -------------------------------------------------------------------------------- /Solutions/A/array-of-doubled-pairs/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/A/assign-cookies/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Two pointers 3 | -------------------------------------------------------------------------------- /Solutions/A/asteroid-collision/tags: -------------------------------------------------------------------------------- 1 | Stack>From array elements 2 | -------------------------------------------------------------------------------- /Solutions/A/average-waiting-time/tags: -------------------------------------------------------------------------------- 1 | Averaging from total and count 2 | -------------------------------------------------------------------------------- /Solutions/A/avoid-flood-in-the-city/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Binary search>Python SortedList 3 | Greedy 4 | -------------------------------------------------------------------------------- /Solutions/B/backspace-string-compare/tags: -------------------------------------------------------------------------------- 1 | Time reversed simulation 2 | -------------------------------------------------------------------------------- /Solutions/B/bag-of-tokens/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/B/baseball-game/tags: -------------------------------------------------------------------------------- 1 | Stack>Numerical operations 2 | -------------------------------------------------------------------------------- /Solutions/B/basic-calculator-ii/tags: -------------------------------------------------------------------------------- 1 | Stack>Numerical operations 2 | String>Parsing 3 | -------------------------------------------------------------------------------- /Solutions/B/basic-calculator/tags: -------------------------------------------------------------------------------- 1 | Stack>Numerical operations 2 | String>Parsing 3 | -------------------------------------------------------------------------------- /Solutions/B/beautiful-arrangement-ii/tags: -------------------------------------------------------------------------------- 1 | Construction 2 | -------------------------------------------------------------------------------- /Solutions/B/beautiful-arrangement/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/B/beautiful-array/tags: -------------------------------------------------------------------------------- 1 | Construction 2 | -------------------------------------------------------------------------------- /Solutions/B/best-sightseeing-pair/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Modify element with index 2 | Prefix>Extremum 3 | -------------------------------------------------------------------------------- /Solutions/B/best-time-to-buy-and-sell-stock-ii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/B/best-time-to-buy-and-sell-stock-iv/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Auxiliary array 2 | -------------------------------------------------------------------------------- /Solutions/B/best-time-to-buy-and-sell-stock-with-cooldown/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/B/best-time-to-buy-and-sell-stock/tags: -------------------------------------------------------------------------------- 1 | Prefix>Extremum 2 | -------------------------------------------------------------------------------- /Solutions/B/binary-prefix-divisible-by-5/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/B/binary-search-tree-iterator/tags: -------------------------------------------------------------------------------- 1 | Tree>Binary search tree>Traversal 2 | Stack 3 | -------------------------------------------------------------------------------- /Solutions/B/binary-search/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/B/binary-subarrays-with-sum/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/B/binary-watch/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Formatted output 3 | -------------------------------------------------------------------------------- /Solutions/B/bitwise-and-of-numbers-range/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/B/block-placement-queries/tags: -------------------------------------------------------------------------------- 1 | Segment tree>Lazy propagation 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/B/boats-to-save-people/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/B/break-a-palindrome/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | -------------------------------------------------------------------------------- /Solutions/B/brick-wall/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/B/build-a-matrix-with-conditions/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Topological sort 2 | Permutation>Inverse 3 | -------------------------------------------------------------------------------- /Solutions/B/build-an-array-with-stack-operations/tags: -------------------------------------------------------------------------------- 1 | Stack 2 | -------------------------------------------------------------------------------- /Solutions/B/build-array-from-permutation/tags: -------------------------------------------------------------------------------- 1 | Permutation>Inverse 2 | -------------------------------------------------------------------------------- /Solutions/B/building-h2o/tags: -------------------------------------------------------------------------------- 1 | Concurrency 2 | -------------------------------------------------------------------------------- /Solutions/B/bulb-switcher/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/B/burst-balloons/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/B/bus-routes/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/B/button-with-longest-push-time/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/B/buy-two-chocolates/tags: -------------------------------------------------------------------------------- 1 | Sorting>Partial 2 | -------------------------------------------------------------------------------- /Solutions/C/calculate-money-in-leetcode-bank/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Closed form expressions 2 | -------------------------------------------------------------------------------- /Solutions/C/can-make-arithmetic-progression-from-sequence/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | ChatGPT 3 | Mathematics>Basic 4 | -------------------------------------------------------------------------------- /Solutions/C/candy/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/C/capacity-to-ship-packages-within-d-days/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/C/car-pooling/tags: -------------------------------------------------------------------------------- 1 | Intervals>Endpoint sorting 2 | -------------------------------------------------------------------------------- /Solutions/C/champagne-tower/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/C/cheapest-flights-within-k-stops/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/check-array-formation-through-concatenation/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/C/check-balanced-string/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-a-parentheses-string-can-be-valid/tags: -------------------------------------------------------------------------------- 1 | Stack>Valid brackets 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/C/check-if-all-1s-are-at-least-length-k-places-away/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-array-is-good/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-array-is-sorted-and-rotated/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Cyclic array 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-array-pairs-are-divisible-by-k/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-bitwise-or-has-trailing-zeros/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-grid-can-be-cut-into-sections/tags: -------------------------------------------------------------------------------- 1 | Intervals>Endpoint sorting 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/C/check-if-it-is-a-good-array/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-it-is-a-straight-line/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-it-is-possible-to-split-array/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-n-and-its-double-exist/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-point-is-reachable/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-strings-can-be-made-equal-with-operations-ii/tags: -------------------------------------------------------------------------------- 1 | Permutation>Swaps 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-the-number-is-fascinating/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/C/check-if-the-rectangle-corner-is-reachable/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | Mathematics>Geometry 3 | -------------------------------------------------------------------------------- /Solutions/C/check-if-there-is-a-valid-partition-for-the-array/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/cherry-pickup-ii/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/C/cinema-seat-allocation/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/circular-sentence/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/C/clear-digits/tags: -------------------------------------------------------------------------------- 1 | Stack 2 | -------------------------------------------------------------------------------- /Solutions/C/climbing-stairs/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/clone-graph/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Pointers 3 | -------------------------------------------------------------------------------- /Solutions/C/closest-nodes-queries-in-a-binary-search-tree/tags: -------------------------------------------------------------------------------- 1 | Sorting>Remembering index 2 | -------------------------------------------------------------------------------- /Solutions/C/closest-prime-numbers-in-range/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Prime sieving 2 | -------------------------------------------------------------------------------- /Solutions/C/closest-room/tags: -------------------------------------------------------------------------------- 1 | Binary search>C++ set 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/C/collecting-chocolates/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Cyclic array 2 | -------------------------------------------------------------------------------- /Solutions/C/combination-sum-iii/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/C/combination-sum-iv/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Memoised recursion 2 | -------------------------------------------------------------------------------- /Solutions/C/combination-sum/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/C/compare-version-numbers/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/C/complement-of-base-10-integer/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/C/concatenation-of-consecutive-binary-numbers/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/C/consecutive-characters/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/C/constrained-subsequence-sum/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/C/construct-k-palindrome-strings/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Palindrome 3 | -------------------------------------------------------------------------------- /Solutions/C/construct-quad-tree/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum>2D 2 | Design data structure 3 | QuadTree 4 | -------------------------------------------------------------------------------- /Solutions/C/construct-smallest-number-from-di-string/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Subsets 2 | -------------------------------------------------------------------------------- /Solutions/C/construct-string-with-repeat-limit/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/C/construct-target-array-with-multiple-sums/tags: -------------------------------------------------------------------------------- 1 | Time reversed simulation 2 | -------------------------------------------------------------------------------- /Solutions/C/construct-the-lexicographically-largest-valid-sequence/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/construct-the-longest-new-string/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/C/construct-the-minimum-bitwise-array-i/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/C/construct-the-minimum-bitwise-array-ii/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/C/container-with-most-water/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/C/contains-duplicate-ii/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/C/contains-duplicate-iii/tags: -------------------------------------------------------------------------------- 1 | Binary search>C++ set 2 | -------------------------------------------------------------------------------- /Solutions/C/contiguous-array/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/continuous-subarray-sum/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Prefix>Sum 3 | Mathematics>Number theory>Basic 4 | -------------------------------------------------------------------------------- /Solutions/C/continuous-subarrays/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/C/convert-an-array-into-a-2d-array-with-conditions/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/C/convert-binary-number-in-a-linked-list-to-integer/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/C/copy-list-with-random-pointer/tags: -------------------------------------------------------------------------------- 1 | Pointers 2 | Linked list>Iteration 3 | -------------------------------------------------------------------------------- /Solutions/C/count-all-valid-pickup-and-delivery-options/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/C/count-almost-equal-pairs-i/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/C/count-alternating-subarrays/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/C/count-binary-substrings/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/C/count-collisions-on-a-road/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/C/count-complete-subarrays-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/C/count-complete-substrings/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/C/count-complete-tree-nodes/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | -------------------------------------------------------------------------------- /Solutions/C/count-days-spent-together/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | String>Parsing 3 | Intervals>Overlap 4 | -------------------------------------------------------------------------------- /Solutions/C/count-days-without-meetings/tags: -------------------------------------------------------------------------------- 1 | Intervals>Endpoint sorting 2 | -------------------------------------------------------------------------------- /Solutions/C/count-distinct-numbers-on-board/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/C/count-elements-with-maximum-frequency/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/C/count-good-triplets-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Permutation>Inverse 2 | Segment tree 3 | -------------------------------------------------------------------------------- /Solutions/C/count-hills-and-valleys-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/C/count-k-subsequences-of-a-string-with-maximum-beauty/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/C/count-largest-group/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/C/count-mentions-per-user/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/C/count-negative-numbers-in-a-sorted-matrix/tags: -------------------------------------------------------------------------------- 1 | Matrix>Traversal 2 | -------------------------------------------------------------------------------- /Solutions/C/count-nice-pairs-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/C/count-number-of-bad-pairs/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/count-number-of-nice-subarrays/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/count-number-of-teams/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Middle element of triplet 2 | -------------------------------------------------------------------------------- /Solutions/C/count-of-interesting-subarrays/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Mathematics>Number theory>Basic 3 | -------------------------------------------------------------------------------- /Solutions/C/count-of-matches-in-tournament/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/C/count-of-range-sum/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | Binary search>C++ set 3 | -------------------------------------------------------------------------------- /Solutions/C/count-of-smaller-numbers-after-self/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/C/count-of-sub-multisets-with-bounded-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Knapsack 2 | -------------------------------------------------------------------------------- /Solutions/C/count-operations-to-obtain-zero/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>GCD/LCM 2 | -------------------------------------------------------------------------------- /Solutions/C/count-pairs-of-nodes/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Mathematics>Combinatorics 3 | -------------------------------------------------------------------------------- /Solutions/C/count-pairs-of-similar-strings/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/count-pairs-with-xor-in-a-range/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Segment tree 3 | -------------------------------------------------------------------------------- /Solutions/C/count-partitions-with-even-sum-difference/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Parity 2 | -------------------------------------------------------------------------------- /Solutions/C/count-paths-with-the-given-xor-value/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Grid 2 | Matrix>Path 3 | -------------------------------------------------------------------------------- /Solutions/C/count-prefix-and-suffix-pairs-i/tags: -------------------------------------------------------------------------------- 1 | String>Search>Hashing 2 | -------------------------------------------------------------------------------- /Solutions/C/count-prefix-and-suffix-pairs-ii/tags: -------------------------------------------------------------------------------- 1 | String>Search>Hashing 2 | -------------------------------------------------------------------------------- /Solutions/C/count-primes/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Prime sieving 2 | -------------------------------------------------------------------------------- /Solutions/C/count-servers-that-communicate/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/C/count-sorted-vowel-strings/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/C/count-special-integers/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | Dynamic programming>Digits 3 | -------------------------------------------------------------------------------- /Solutions/C/count-square-submatrices-with-all-ones/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/count-square-sum-triples/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Mathematics>Number theory>Basic 3 | -------------------------------------------------------------------------------- /Solutions/C/count-stepping-numbers-in-range/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Digits 2 | -------------------------------------------------------------------------------- /Solutions/C/count-sub-islands/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/C/count-subarrays-where-max-element-appears-at-least-k-times/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/C/count-subarrays-with-median-k/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/count-subarrays-with-score-less-than-k/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/C/count-submatrices-with-top-left-element-and-sum-less-than-k/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum>2D 2 | -------------------------------------------------------------------------------- /Solutions/C/count-substrings-with-k-frequency-characters-i/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/C/count-tested-devices-after-test-operations/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/C/count-the-hidden-sequences/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/C/count-the-number-of-good-subarrays/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/C/count-the-number-of-powerful-integers/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Digits 2 | -------------------------------------------------------------------------------- /Solutions/C/count-the-number-of-special-characters-ii/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/C/count-total-number-of-colored-cells/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Closed form expressions 2 | -------------------------------------------------------------------------------- /Solutions/C/count-unguarded-cells-in-the-grid/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | -------------------------------------------------------------------------------- /Solutions/C/count-visited-nodes-in-a-directed-graph/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Single outdegree graphs 2 | -------------------------------------------------------------------------------- /Solutions/C/count-vowel-strings-in-ranges/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/C/count-vowels-permutation/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/count-ways-to-build-good-strings/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/C/course-schedule-ii/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Topological sort 2 | -------------------------------------------------------------------------------- /Solutions/C/course-schedule-iii/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/C/course-schedule/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Topological sort 2 | -------------------------------------------------------------------------------- /Solutions/C/crawler-log-folder/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/C/create-binary-tree-from-descriptions/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Tree>Binary tree 3 | -------------------------------------------------------------------------------- /Solutions/C/create-sorted-array-through-instructions/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/C/custom-sort-string/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/C/cycle-length-queries-in-a-tree/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Tree>Binary tree 3 | -------------------------------------------------------------------------------- /Solutions/D/decode-ways-ii/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/D/decode-ways/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/D/defuse-the-bomb/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Array scanning>Cyclic array 3 | -------------------------------------------------------------------------------- /Solutions/D/delete-and-earn/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/D/delete-greatest-value-in-each-row/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/D/delete-node-in-a-linked-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/D/delete-nodes-from-linked-list-present-in-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Linked list>Recursion 3 | -------------------------------------------------------------------------------- /Solutions/D/design-a-stack-with-increment-operation/tags: -------------------------------------------------------------------------------- 1 | Stack 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/D/design-add-and-search-words-data-structure/tags: -------------------------------------------------------------------------------- 1 | Trie 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/D/design-browser-history/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/D/design-circular-deque/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | Deque 3 | -------------------------------------------------------------------------------- /Solutions/D/design-circular-queue/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/D/design-hashmap/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/D/design-hashset/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/D/design-memory-allocator/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/D/design-movie-rental-system/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/D/design-parking-system/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | ChatGPT 3 | -------------------------------------------------------------------------------- /Solutions/D/design-spreadsheet/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/D/destination-city/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Single outdegree graphs 2 | -------------------------------------------------------------------------------- /Solutions/D/destroy-sequential-targets/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Mathematics>Number theory>Basic 3 | -------------------------------------------------------------------------------- /Solutions/D/detect-capital/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/D/detect-cycles-in-2d-grid/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/D/determine-if-a-cell-is-reachable-at-a-given-time/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/D/determine-if-two-events-have-conflict/tags: -------------------------------------------------------------------------------- 1 | Intervals>Overlap 2 | -------------------------------------------------------------------------------- /Solutions/D/determine-if-two-strings-are-close/tags: -------------------------------------------------------------------------------- 1 | Counting elements in array 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/D/determine-the-minimum-sum-of-a-k-avoiding-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/D/detonate-the-maximum-bombs/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/D/diagonal-traverse-ii/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/D/diagonal-traverse/tags: -------------------------------------------------------------------------------- 1 | Matrix>Traversal 2 | -------------------------------------------------------------------------------- /Solutions/D/difference-of-number-of-distinct-values-on-diagonals/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/D/distinct-subsequences/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/D/distribute-money-to-maximum-children/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/D/divide-array-in-sets-of-k-consecutive-numbers/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/D/divide-array-into-arrays-with-max-difference/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/D/divide-array-into-equal-pairs/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/D/divide-players-into-teams-of-equal-skill/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/D/divide-two-integers/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/D/domino-and-tromino-tiling/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | Mathematics>Combinatorics 3 | -------------------------------------------------------------------------------- /Solutions/D/dota2-senate/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/D/double-a-number-represented-as-a-linked-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Recursion 2 | -------------------------------------------------------------------------------- /Solutions/D/dungeon-game/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Matrix>Path 3 | -------------------------------------------------------------------------------- /Solutions/E/earliest-possible-day-of-full-bloom/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/E/earliest-second-to-mark-indices-i/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/E/earliest-second-to-mark-indices-ii/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | Priority queue 4 | -------------------------------------------------------------------------------- /Solutions/E/edit-distance/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/E/element-appearing-more-than-25-in-sorted-array/tags: -------------------------------------------------------------------------------- 1 | Suboptimal solution 2 | -------------------------------------------------------------------------------- /Solutions/E/eliminate-maximum-number-of-monsters/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/E/employee-importance/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | Dynamic programming>Trees 3 | -------------------------------------------------------------------------------- /Solutions/E/equal-row-and-column-pairs/tags: -------------------------------------------------------------------------------- 1 | Matrix>Geometric transformation 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/E/erect-the-fence/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry>Convex hull 2 | -------------------------------------------------------------------------------- /Solutions/E/evaluate-reverse-polish-notation/tags: -------------------------------------------------------------------------------- 1 | Stack>Numerical operations 2 | -------------------------------------------------------------------------------- /Solutions/E/evaluate-the-bracket-pairs-of-a-string/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/E/excel-sheet-column-title/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/E/expression-add-operators/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/F/factorial-trailing-zeroes/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/fair-distribution-of-cookies/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration>Combinatorial 2 | -------------------------------------------------------------------------------- /Solutions/F/falling-squares/tags: -------------------------------------------------------------------------------- 1 | Intervals>Non-overlapping decomposition 2 | -------------------------------------------------------------------------------- /Solutions/F/fibonacci-number/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/F/filling-bookcase-shelves/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/F/find-a-safe-walk-through-a-grid/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search>0-1 BFS 2 | -------------------------------------------------------------------------------- /Solutions/F/find-all-anagrams-in-a-string/tags: -------------------------------------------------------------------------------- 1 | Counting elements in array 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/F/find-all-groups-of-farmland/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | -------------------------------------------------------------------------------- /Solutions/F/find-all-k-distant-indices-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Suboptimal solution 3 | -------------------------------------------------------------------------------- /Solutions/F/find-center-of-star-graph/tags: -------------------------------------------------------------------------------- 1 | Graph theory 2 | -------------------------------------------------------------------------------- /Solutions/F/find-common-characters/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/F/find-consecutive-integers-from-a-data-stream/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/F/find-duplicate-file-in-system/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/F/find-first-and-last-position-of-element-in-sorted-array/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/F/find-if-array-can-be-sorted/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Array scanning>Contiguous region 3 | -------------------------------------------------------------------------------- /Solutions/F/find-if-path-exists-in-graph/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/F/find-in-mountain-array/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/F/find-indices-with-index-and-value-difference-i/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/F/find-indices-with-index-and-value-difference-ii/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/F/find-k-closest-elements/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Two pointers 3 | -------------------------------------------------------------------------------- /Solutions/F/find-k-pairs-with-smallest-sums/tags: -------------------------------------------------------------------------------- 1 | Priority queue>K smallest/largest elements 2 | -------------------------------------------------------------------------------- /Solutions/F/find-k-th-smallest-pair-distance/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/F/find-kth-bit-in-nth-binary-string/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Divide and conquer 3 | -------------------------------------------------------------------------------- /Solutions/F/find-lucky-integer-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/F/find-maximum-number-of-string-pairs/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/find-minimum-in-rotated-sorted-array-ii/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | -------------------------------------------------------------------------------- /Solutions/F/find-minimum-in-rotated-sorted-array/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | -------------------------------------------------------------------------------- /Solutions/F/find-minimum-operations-to-make-all-elements-divisible-by-three/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-missing-observations/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-most-frequent-vowel-and-consonant/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/F/find-n-unique-integers-sum-up-to-zero/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Closed form expressions 2 | -------------------------------------------------------------------------------- /Solutions/F/find-original-array-from-doubled-array/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/F/find-peak-element/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | -------------------------------------------------------------------------------- /Solutions/F/find-players-with-zero-or-one-losses/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/find-polygon-with-the-largest-perimeter/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/F/find-resultant-array-after-removing-anagrams/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | String>Anagrams 3 | -------------------------------------------------------------------------------- /Solutions/F/find-right-interval/tags: -------------------------------------------------------------------------------- 1 | Sorting>Remembering index 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/F/find-score-of-an-array-after-marking-all-elements/tags: -------------------------------------------------------------------------------- 1 | Sorting>Index array 2 | -------------------------------------------------------------------------------- /Solutions/F/find-smallest-letter-greater-than-target/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/F/find-subarray-with-bitwise-and-closest-to-k/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Bitwise operation 3 | -------------------------------------------------------------------------------- /Solutions/F/find-subsequence-of-length-k-with-the-largest-sum/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-child-who-has-the-ball-after-k-seconds/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-closest-palindrome/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-difference-of-two-arrays/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-difference/tags: -------------------------------------------------------------------------------- 1 | Unique/duplicate element finding with bizarro algorithms 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-divisibility-array-of-a-string/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-duplicate-number/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Suboptimal solution 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-first-player-to-win-k-games-in-a-row/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-grid-of-region-average/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | Averaging from total and count 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-highest-altitude/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-integer-added-to-array-i/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-integer-added-to-array-ii/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-k-or-of-an-array/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-k-sum-of-an-array/tags: -------------------------------------------------------------------------------- 1 | Priority queue>Dijkstra-like processing of subarrays 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-largest-area-of-square-inside-two-rectangles/tags: -------------------------------------------------------------------------------- 1 | Intervals>Overlap 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-length-of-the-longest-common-prefix/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-lexicographically-largest-string-from-the-box-i/tags: -------------------------------------------------------------------------------- 1 | String 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-longest-semi-repetitive-substring/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-maximum-achievable-number/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-maximum-factor-score-of-array/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-maximum-length-of-valid-subsequence-i/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-maximum-number-of-elements-in-subset/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-maximum-number-of-marked-indices/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-minimum-amount-of-time-to-brew-potions/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-minimum-area-to-cover-all-ones-i/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-minimum-area-to-cover-all-ones-ii/tags: -------------------------------------------------------------------------------- 1 | Matrix>Subdivision 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-minimum-possible-sum-of-a-beautiful-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-most-competitive-subsequence/tags: -------------------------------------------------------------------------------- 1 | Priority queue>K smallest/largest elements 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-n-th-value-after-k-seconds/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-number-of-ways-to-place-people-i/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Points in 2D plane 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-number-of-ways-to-place-people-ii/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Points in 2D plane 3 | -------------------------------------------------------------------------------- /Solutions/F/find-the-number-of-winning-players/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-power-of-k-size-subarrays-i/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-power-of-k-size-subarrays-ii/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-prefix-common-array-of-two-arrays/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-punishment-number-of-an-integer/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-shortest-superstring/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Subsets 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-smallest-divisor-given-a-threshold/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-string-with-lcp/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Construction 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-student-that-will-replace-the-chalk/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-substring-with-maximum-cost/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-value-of-the-partition/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/F/find-the-winning-player-in-coin-game/tags: -------------------------------------------------------------------------------- 1 | Two player games 2 | -------------------------------------------------------------------------------- /Solutions/F/find-unique-binary-string/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Set theory 2 | -------------------------------------------------------------------------------- /Solutions/F/find-valid-matrix-given-row-and-column-sums/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/F/find-valid-pair-of-adjacent-digits-in-string/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/F/find-words-that-can-be-formed-by-characters/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/finding-3-digit-even-numbers/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration 2 | -------------------------------------------------------------------------------- /Solutions/F/finding-pairs-with-a-certain-sum/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Update using insert and delete 2 | -------------------------------------------------------------------------------- /Solutions/F/finding-the-users-active-minutes/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/first-bad-version/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/F/first-completely-painted-row-or-column/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/first-letter-to-appear-twice/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/F/first-missing-positive/tags: -------------------------------------------------------------------------------- 1 | Unique/duplicate element finding with bizarro algorithms 2 | -------------------------------------------------------------------------------- /Solutions/F/first-unique-character-in-a-string/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/F/fizz-buzz-multithreaded/tags: -------------------------------------------------------------------------------- 1 | Concurrency 2 | -------------------------------------------------------------------------------- /Solutions/F/flatten-nested-list-iterator/tags: -------------------------------------------------------------------------------- 1 | Flattening 2 | Suboptimal solution 3 | -------------------------------------------------------------------------------- /Solutions/F/flood-fill/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/F/form-smallest-number-from-two-digit-arrays/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/F/frequency-of-the-most-frequent-element/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/F/frog-jump-ii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/F/frog-jump/tags: -------------------------------------------------------------------------------- 1 | ChatGPT>Fixed 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/F/fruit-into-baskets/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/F/fruits-into-baskets-iii/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/F/furthest-building-you-can-reach/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/F/furthest-point-from-origin/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/G/gas-station/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/G/generate-parentheses/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/G/generate-random-point-in-a-circle/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Probability 2 | -------------------------------------------------------------------------------- /Solutions/G/get-equal-substrings-within-budget/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/G/global-and-local-inversions/tags: -------------------------------------------------------------------------------- 1 | Prefix>Extremum 2 | Permutation>Inversions 3 | -------------------------------------------------------------------------------- /Solutions/G/goat-latin/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/G/gray-code/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/G/greatest-common-divisor-of-strings/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/G/greatest-sum-divisible-by-three/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/G/grid-game/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/G/group-anagrams/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | String>Anagrams 3 | -------------------------------------------------------------------------------- /Solutions/G/group-the-people-given-the-group-size-they-belong-to/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Group items 2 | -------------------------------------------------------------------------------- /Solutions/G/grumpy-bookstore-owner/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/G/guess-number-higher-or-lower/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/H/h-index-ii/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/H/h-index/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/H/hamming-distance/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/H/hand-of-straights/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/H/happy-number/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Cycle detection 2 | -------------------------------------------------------------------------------- /Solutions/H/happy-students/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/H/high-access-employees/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/H/house-robber-ii/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Cyclic array 2 | -------------------------------------------------------------------------------- /Solutions/H/house-robber-iv/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/H/house-robber/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/I/identify-the-largest-outlier-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/I/implement-queue-using-stacks/tags: -------------------------------------------------------------------------------- 1 | Design data structure>Interconversion 2 | -------------------------------------------------------------------------------- /Solutions/I/implement-rand10-using-rand7/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Probability 2 | -------------------------------------------------------------------------------- /Solutions/I/implement-stack-using-queues/tags: -------------------------------------------------------------------------------- 1 | Design data structure>Interconversion 2 | -------------------------------------------------------------------------------- /Solutions/I/implement-trie-prefix-tree/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | Trie 3 | -------------------------------------------------------------------------------- /Solutions/I/increasing-triplet-subsequence/tags: -------------------------------------------------------------------------------- 1 | Prefix>Extremum 2 | -------------------------------------------------------------------------------- /Solutions/I/insert-greatest-common-divisors-in-linked-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/I/insert-interval/tags: -------------------------------------------------------------------------------- 1 | Intervals 2 | -------------------------------------------------------------------------------- /Solutions/I/insert-into-a-binary-search-tree/tags: -------------------------------------------------------------------------------- 1 | Tree>Binary search tree 2 | -------------------------------------------------------------------------------- /Solutions/I/insertion-sort-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/I/integer-break/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/I/integer-to-english-words/tags: -------------------------------------------------------------------------------- 1 | Formatted output 2 | -------------------------------------------------------------------------------- /Solutions/I/integer-to-roman/tags: -------------------------------------------------------------------------------- 1 | Formatted output 2 | -------------------------------------------------------------------------------- /Solutions/I/interleaving-string/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/I/intersection-of-two-arrays-ii/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Counting elements in array 3 | -------------------------------------------------------------------------------- /Solutions/I/intersection-of-two-arrays/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/I/intersection-of-two-linked-lists/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/I/interval-list-intersections/tags: -------------------------------------------------------------------------------- 1 | Intervals>Overlap 2 | -------------------------------------------------------------------------------- /Solutions/I/ipo/tags: -------------------------------------------------------------------------------- 1 | Sorting>Index array 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/I/is-graph-bipartite/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Colouring 2 | -------------------------------------------------------------------------------- /Solutions/I/is-subsequence/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | String>Subsequence 3 | -------------------------------------------------------------------------------- /Solutions/J/jewels-and-stones/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/J/jump-game-ii/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Right to left 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/J/jump-game-iii/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/J/jump-game-iv/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | Hashmap>Group items 3 | -------------------------------------------------------------------------------- /Solutions/J/jump-game-vi/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Right to left 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/J/jump-game-vii/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/J/jump-game/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/K/k-diff-pairs-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/K/k-inverse-pairs-array/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/K/k-radius-subarray-averages/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/K/k-th-nearest-obstacle-queries/tags: -------------------------------------------------------------------------------- 1 | Priority queue>Python SortedList 2 | -------------------------------------------------------------------------------- /Solutions/K/k-th-smallest-prime-fraction/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/K/k-th-symbol-in-grammar/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/K/keys-and-rooms/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/K/koko-eating-bananas/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/K/kth-distinct-string-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/K/kth-largest-element-in-a-stream/tags: -------------------------------------------------------------------------------- 1 | Priority queue>K smallest/largest elements 2 | -------------------------------------------------------------------------------- /Solutions/K/kth-largest-element-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Quick Select 2 | -------------------------------------------------------------------------------- /Solutions/K/kth-missing-positive-number/tags: -------------------------------------------------------------------------------- 1 | Suboptimal solution 2 | -------------------------------------------------------------------------------- /Solutions/K/kth-smallest-element-in-a-sorted-matrix/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/K/kth-smallest-number-in-multiplication-table/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/K/kth-smallest-product-of-two-sorted-arrays/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/L/largest-element-in-an-array-after-merge-operations/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Right to left 2 | -------------------------------------------------------------------------------- /Solutions/L/largest-number/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/L/largest-odd-number-in-string/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Right to left 2 | -------------------------------------------------------------------------------- /Solutions/L/largest-palindromic-number/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Counting elements in array 3 | -------------------------------------------------------------------------------- /Solutions/L/largest-perimeter-triangle/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Mathematics>Basic 3 | -------------------------------------------------------------------------------- /Solutions/L/largest-plus-sign/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | -------------------------------------------------------------------------------- /Solutions/L/largest-triangle-area/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/L/last-day-where-you-can-still-cross/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | Matrix>Path 3 | -------------------------------------------------------------------------------- /Solutions/L/last-stone-weight/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/L/least-number-of-unique-integers-after-k-removals/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/L/lemonade-change/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/L/length-of-last-word/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/L/length-of-longest-subarray-with-at-most-k-frequency/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/L/lexicographical-numbers/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/L/lexicographically-minimum-string-after-removing-stars/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/L/lexicographically-smallest-beautiful-string/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | -------------------------------------------------------------------------------- /Solutions/L/lexicographically-smallest-equivalent-string/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/L/lexicographically-smallest-palindrome/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | -------------------------------------------------------------------------------- /Solutions/L/lexicographically-smallest-string-after-operations-with-constraint/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/L/lexicographically-smallest-string-after-substring-operation/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/L/linked-list-cycle-ii/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration>Slow and fast pointers 2 | -------------------------------------------------------------------------------- /Solutions/L/linked-list-cycle/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration>Slow and fast pointers 2 | -------------------------------------------------------------------------------- /Solutions/L/linked-list-random-node/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | Mathematics>Probability 3 | -------------------------------------------------------------------------------- /Solutions/L/longer-contiguous-segments-of-ones-than-zeros/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-alternating-subarray/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-arithmetic-subsequence/tags: -------------------------------------------------------------------------------- 1 | ChatGPT 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-common-suffix-queries/tags: -------------------------------------------------------------------------------- 1 | Trie 2 | String>Search>Trie 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-consecutive-sequence/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-cycle-in-a-graph/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Single outdegree graphs 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-even-odd-subarray-with-threshold/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-happy-string/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-harmonious-subsequence/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-ideal-subsequence/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-increasing-subsequence-ii/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-mountain-in-array/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-nice-subarray/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Unique elements in subarray 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-non-decreasing-subarray-from-two-arrays/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-palindrome-by-concatenating-two-letter-words/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-palindrome/tags: -------------------------------------------------------------------------------- 1 | Counting elements in array 2 | Palindrome 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-palindromic-subsequence/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-palindromic-substring/tags: -------------------------------------------------------------------------------- 1 | Palindrome>Hashing 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-square-streak-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-string-chain/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-subarray-of-1s-after-deleting-one-element/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-subarray-with-maximum-bitwise-and/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-subsequence-with-limited-sum/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Prefix>Sum 3 | Binary search 4 | -------------------------------------------------------------------------------- /Solutions/L/longest-substring-of-all-vowels-in-order/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-substring-with-at-least-k-repeating-characters/tags: -------------------------------------------------------------------------------- 1 | Suboptimal solution 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-turbulent-subarray/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-unequal-adjacent-groups-subsequence-i/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-uploaded-prefix/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-valid-parentheses/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Stack>From array elements 3 | -------------------------------------------------------------------------------- /Solutions/L/longest-word-in-dictionary-through-deleting/tags: -------------------------------------------------------------------------------- 1 | String>Subsequence 2 | -------------------------------------------------------------------------------- /Solutions/L/longest-word-in-dictionary/tags: -------------------------------------------------------------------------------- 1 | Suboptimal solution 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/magnetic-force-between-two-balls/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/majority-element-ii/tags: -------------------------------------------------------------------------------- 1 | Majority element 2 | -------------------------------------------------------------------------------- /Solutions/M/majority-element/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Majority element 3 | -------------------------------------------------------------------------------- /Solutions/M/make-array-elements-equal-to-zero/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Observation 2 | -------------------------------------------------------------------------------- /Solutions/M/make-array-empty/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | Sorting>Index array 3 | -------------------------------------------------------------------------------- /Solutions/M/make-array-zero-by-subtracting-equal-amounts/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/make-number-of-distinct-characters-equal/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Case-by-case analysis 3 | -------------------------------------------------------------------------------- /Solutions/M/make-string-a-subsequence-using-cyclic-increments/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | String>Subsequence 3 | -------------------------------------------------------------------------------- /Solutions/M/make-the-string-great/tags: -------------------------------------------------------------------------------- 1 | Stack>From array elements 2 | -------------------------------------------------------------------------------- /Solutions/M/make-two-arrays-equal-by-reversing-subarrays/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/M/making-a-large-island/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/M/map-of-highest-peak/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/map-sum-pairs/tags: -------------------------------------------------------------------------------- 1 | Suboptimal solution 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/mark-elements-on-array-by-performing-queries/tags: -------------------------------------------------------------------------------- 1 | Sorting>Remembering index 2 | -------------------------------------------------------------------------------- /Solutions/M/matchsticks-to-square/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration>Combinatorial 2 | Meet in the middle 3 | -------------------------------------------------------------------------------- /Solutions/M/max-area-of-island/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/M/max-chunks-to-make-sorted/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/max-consecutive-ones-iii/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/max-consecutive-ones/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/M/max-difference-you-can-get-from-changing-an-integer/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/max-dot-product-of-two-subsequences/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Longest common subsequence 2 | -------------------------------------------------------------------------------- /Solutions/M/max-number-of-k-sum-pairs/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/max-pair-sum-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Group items 2 | -------------------------------------------------------------------------------- /Solutions/M/max-points-on-a-line/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Mathematics>Geometry 3 | -------------------------------------------------------------------------------- /Solutions/M/max-sum-of-a-pair-with-equal-sum-of-digits/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/maximal-network-rank/tags: -------------------------------------------------------------------------------- 1 | Graph theory 2 | -------------------------------------------------------------------------------- /Solutions/M/maximal-rectangle/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Array scanning>Contiguous region 3 | -------------------------------------------------------------------------------- /Solutions/M/maximal-score-after-applying-k-operations/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/M/maximal-square/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum>2D 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-amount-after-two-days-of-conversions/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-area-of-square-hole-in-grid/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Array scanning>Contiguous region 3 | -------------------------------------------------------------------------------- /Solutions/M/maximize-distance-to-closest-person/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-greatness-of-an-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Two pointers 3 | -------------------------------------------------------------------------------- /Solutions/M/maximize-happiness-of-selected-children/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-score-after-n-operations/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Subsets 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-score-of-numbers-in-ranges/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/M/maximize-the-confusion-of-an-exam/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-the-minimum-game-score/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Array scanning 3 | Greedy 4 | -------------------------------------------------------------------------------- /Solutions/M/maximize-the-total-height-of-unique-towers/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximize-total-cost-of-alternating-subarrays/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-absolute-sum-of-any-subarray/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-alternating-subsequence-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-amount-of-money-robot-can-earn/tags: -------------------------------------------------------------------------------- 1 | Matrix>Path 2 | Dynamic programming>Grid 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-area-of-longest-diagonal-rectangle/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-area-rectangle-with-point-constraints-i/tags: -------------------------------------------------------------------------------- 1 | QuadTree 2 | Hashmap>Group items 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-ascending-subarray-sum/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-average-pass-ratio/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-bags-with-full-capacity-of-rocks/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-beauty-of-an-array-after-applying-operation/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-building-height/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-candies-allocated-to-k-children/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-coins-from-k-consecutive-bags/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-difference-between-even-and-odd-frequency-i/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-difference-between-increasing-elements/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-distance-between-a-pair-of-values/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Suboptimal solution 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-distance-in-arrays/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Suboptimal solution 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-element-after-decreasing-and-rearranging/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-enemy-forts-that-can-be-captured/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-energy-boost-from-two-drinks/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-erasure-value/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Unique elements in subarray 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-frequency-after-subarray-operation/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-frequency-stack/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-fruits-harvested-after-at-most-k-steps/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-gap/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-good-subarray-sum/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-ice-cream-bars/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-length-of-pair-chain/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-manhattan-distance-after-k-changes/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-matching-of-players-with-trainer/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-matrix-sum/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-multiplication-score/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-nesting-depth-of-the-parentheses/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum>Valid brackets 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-nesting-depth-of-two-valid-parentheses-strings/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-alloys/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-coins-you-can-get/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-consecutive-values-you-can-make/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Mathematics 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-distinct-elements-after-operations/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Array scanning 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-events-that-can-be-attended/tags: -------------------------------------------------------------------------------- 1 | Intervals 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-fish-in-a-grid/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-groups-entering-a-competition/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-integers-to-choose-from-a-range-i/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-jumps-to-reach-the-last-index/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-moves-in-a-grid/tags: -------------------------------------------------------------------------------- 1 | Matrix>Path 2 | Dynamic programming>Grid 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-operations-to-move-ones-to-the-end/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Right to left 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-points-with-cost/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-removable-characters/tags: -------------------------------------------------------------------------------- 1 | String>Subsequence 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-tasks-you-can-assign/tags: -------------------------------------------------------------------------------- 1 | Binary search>Python SortedList 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-vowels-in-a-substring-of-given-length/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-number-of-words-you-can-type/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-odd-binary-number/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-palindromes-after-operations/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap>Counter 3 | Palindrome 4 | -------------------------------------------------------------------------------- /Solutions/M/maximum-points-after-enemy-battles/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-points-inside-the-square/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-points-tourist-can-earn/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-points-you-can-obtain-from-cards/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-population-year/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-prime-difference/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-product-difference-between-two-pairs/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-product-of-two-elements-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-product-of-word-lengths/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-product-subarray/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-running-time-of-n-computers/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-score-from-removing-substrings/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Stack 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-score-of-spliced-array/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-score-words-formed-by-letters/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-segment-sum-after-removals/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | Time reversed simulation 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-size-of-a-set-after-removals/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Set theory 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-square-area-by-removing-fences-from-a-field/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-strength-of-k-disjoint-subarrays/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-strong-pair-xor-i/tags: -------------------------------------------------------------------------------- 1 | Trie 2 | Sliding window 3 | Bitwise operation 4 | -------------------------------------------------------------------------------- /Solutions/M/maximum-strong-pair-xor-ii/tags: -------------------------------------------------------------------------------- 1 | Trie 2 | Sliding window 3 | Bitwise operation 4 | -------------------------------------------------------------------------------- /Solutions/M/maximum-subarray-with-equal-products/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>GCD/LCM 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-subarray/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-sum-circular-subarray/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Dynamic programming>Cyclic array 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-sum-of-almost-unique-subarray/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-sum-of-distinct-subarrays-with-length-k/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-sum-of-subsequence-with-non-adjacent-elements/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-sum-with-exactly-k-elements/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Closed form expressions 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-swap/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-tastiness-of-candy-basket/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-total-damage-with-spell-casting/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-unique-subarray-sum-after-deletion/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-units-on-a-truck/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-value-after-insertion/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-value-of-an-ordered-triplet-i/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-value-of-an-ordered-triplet-ii/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-value-sum-by-placing-three-rooks-i/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-value-sum-by-placing-three-rooks-ii/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/maximum-xor-after-operations/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/M/maximum-xor-for-each-query/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/median-of-two-sorted-arrays/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/meeting-rooms-iii/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/M/merge-in-between-linked-lists/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/M/merge-intervals/tags: -------------------------------------------------------------------------------- 1 | Intervals>Union 2 | -------------------------------------------------------------------------------- /Solutions/M/merge-nodes-in-between-zeros/tags: -------------------------------------------------------------------------------- 1 | Linked list>Recursion 2 | -------------------------------------------------------------------------------- /Solutions/M/merge-similar-items/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/merge-two-2d-arrays-by-summing-values/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/M/merge-two-sorted-lists/tags: -------------------------------------------------------------------------------- 1 | Sorting>Merge sort 2 | Linked list>Iteration 3 | -------------------------------------------------------------------------------- /Solutions/M/mice-and-cheese/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sorting>Partial 3 | -------------------------------------------------------------------------------- /Solutions/M/middle-of-the-linked-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration>Slow and fast pointers 2 | -------------------------------------------------------------------------------- /Solutions/M/min-cost-climbing-stairs/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/min-stack/tags: -------------------------------------------------------------------------------- 1 | Stack 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/M/minimize-deviation-in-array/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/M/minimize-manhattan-distances/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/M/minimize-maximum-of-array/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimize-maximum-pair-sum-in-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimize-string-length/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/minimize-the-maximum-adjacent-element-difference/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/minimize-the-maximum-difference-of-pairs/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/minimize-xor/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/M/minimized-maximum-of-products-distributed-to-any-store/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-absolute-difference-between-elements-with-constraint/tags: -------------------------------------------------------------------------------- 1 | Binary search>C++ set 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-absolute-difference-queries/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Offline query processing 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-absolute-difference/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-absolute-sum-difference/tags: -------------------------------------------------------------------------------- 1 | Binary search>C++ set 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-add-to-make-parentheses-valid/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | Prefix>Sum>Valid brackets 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-amount-of-damage-dealt-to-bob/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sorting>Index array 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-amount-of-time-to-collect-garbage/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-array-changes-to-make-differences-equal/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum>For range updates 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-array-end/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Bitwise operation 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-array-length-after-pair-removals/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-array-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-bit-flips-to-convert-number/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-common-value/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-for-cutting-cake-i/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-for-cutting-cake-ii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-for-tickets/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-convert-string-i/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Floyd-Warshall algorithm 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-cut-a-stick/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-equalize-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-hire-k-workers/tags: -------------------------------------------------------------------------------- 1 | Priority queue>K smallest/largest elements 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-make-array-equalindromic/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Mathematics>Median 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-make-arrays-identical/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-merge-stones/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Memoised recursion 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-move-chips-to-the-same-position/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-to-split-an-array/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cost-walk-in-weighted-graph/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-cuts-to-divide-a-circle/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-deletions-to-make-array-divisible/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-deletions-to-make-character-frequencies-unique/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-deletions-to-make-string-balanced/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-deletions-to-make-string-k-special/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-difference-between-largest-and-smallest-value-in-three-moves/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-equal-sum-of-two-arrays-after-replacing-zeros/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-falling-path-sum-ii/tags: -------------------------------------------------------------------------------- 1 | Matrix>Path 2 | Dynamic programming>Array reuse 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-falling-path-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | Matrix>Path 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-flips-to-make-a-or-b-equal-to-c/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | ChatGPT 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-fuel-cost-to-report-to-the-capital/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-genetic-mutation/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-height-trees/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Tree diameter 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-impossible-or/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-increment-operations-to-make-array-beautiful/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-increment-to-make-array-unique/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-length-of-string-after-deleting-similar-ends/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-length-of-string-after-operations/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-levels-to-gain-more-points/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-limit-of-balls-in-a-bag/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-money-required-before-transactions/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-moves-to-capture-the-queen/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-moves-to-equal-array-elements-ii/tags: -------------------------------------------------------------------------------- 1 | Quick Select 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-moves-to-pick-k-ones/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-moves-to-spread-stones-over-grid/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration>Combinatorial 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-arrows-to-burst-balloons/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-chairs-in-a-waiting-room/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-changes-to-make-binary-string-beautiful/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-coins-for-fruits/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-coins-to-be-added/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-days-to-eat-n-oranges/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Memoised recursion 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-flips-to-make-binary-grid-palindromic-i/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | Palindrome 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-increments-on-subarrays-to-form-a-target-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-k-consecutive-bit-flips/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Prefix>Bitwise operation 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-moves-to-seat-everyone/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-operations-to-make-array-continuous/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-operations-to-make-array-empty/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Mathematics>Basic 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-operations-to-make-arrays-similar/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-operations-to-make-word-k-periodic/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-operations-to-reinitialize-a-permutation/tags: -------------------------------------------------------------------------------- 1 | Permutation>Cycle 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-pushes-to-type-word-i/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-pushes-to-type-word-ii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-refueling-stops/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-seconds-to-make-mountain-height-zero/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-steps-to-make-two-strings-anagram/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-vertices-to-reach-all-nodes/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Degree counting 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-number-of-visited-cells-in-a-grid/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-obstacle-removal-to-reach-corner/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search>0-1 BFS 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-collect-elements/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Array scanning>Right to left 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-convert-number/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-exceed-threshold-value-ii/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-all-array-elements-equal/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-array-elements-zero/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Observation 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-array-equal-ii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Mathematics>Invariants 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-array-equal-to-target/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-array-equal/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Closed form expressions 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-array-values-equal-to-k/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-binary-array-elements-equal-to-one-i/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-binary-array-elements-equal-to-one-ii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-columns-strictly-increasing/tags: -------------------------------------------------------------------------------- 1 | Matrix>Traversal 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-the-array-increasing/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-make-the-integer-zero/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-maximize-last-elements-in-arrays/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-reduce-x-to-zero/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-operations-to-write-the-letter-y-on-a-grid/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-path-cost-in-a-grid/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-path-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | Matrix>Path 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-penalty-for-a-shop/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | Counting elements in array 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-positive-sum-subarray/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-processing-time/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-recolors-to-get-k-consecutive-black-blocks/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-rectangles-to-cover-points/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-replacements-to-sort-the-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Array scanning>Right to left 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-right-shifts-to-sort-the-array/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-rounds-to-complete-all-tasks/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Mathematics>Number theory>Basic 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-score-by-changing-two-elements/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-score-of-a-path-between-two-cities/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-score-triangulation-of-polygon/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Memoised recursion 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-seconds-to-equalize-a-circular-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Group items 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-sideway-jumps/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-size-subarray-sum/tags: -------------------------------------------------------------------------------- 1 | ChatGPT 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-skips-to-arrive-at-meeting-on-time/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-speed-to-arrive-on-time/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-string-length-after-removing-substrings/tags: -------------------------------------------------------------------------------- 1 | Stack>From array elements 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-sum-of-mountain-triplets-i/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-sum-of-mountain-triplets-ii/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-sum-of-squared-difference/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-break-locks-i/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-collect-all-apples-in-a-tree/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-complete-all-tasks/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Intervals>Overlap 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-complete-trips/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-make-rope-colorful/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-remove-all-cars-containing-illegal-goods/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-repair-cars/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-revert-word-to-initial-state-i/tags: -------------------------------------------------------------------------------- 1 | String>Search>Hashing 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-time-to-revert-word-to-initial-state-ii/tags: -------------------------------------------------------------------------------- 1 | String>Search>Hashing 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-total-cost-to-make-arrays-unequal/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-total-distance-traveled/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Dynamic programming>Array reuse 3 | -------------------------------------------------------------------------------- /Solutions/M/minimum-value-to-get-positive-step-by-step-sum/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-window-substring/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | -------------------------------------------------------------------------------- /Solutions/M/minimum-xor-sum-of-two-arrays/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Dynamic programming>Subsets 3 | -------------------------------------------------------------------------------- /Solutions/M/mirror-reflection/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/M/monotonic-array/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/M/most-beautiful-item-for-each-query/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | Sorting>Remembering index 3 | -------------------------------------------------------------------------------- /Solutions/M/most-popular-video-creator/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/M/most-profit-assigning-work/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Two pointers 3 | -------------------------------------------------------------------------------- /Solutions/M/move-zeroes/tags: -------------------------------------------------------------------------------- 1 | Array scanning>In-place modification 2 | -------------------------------------------------------------------------------- /Solutions/M/movement-of-robots/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/M/multiply-strings/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | -------------------------------------------------------------------------------- /Solutions/M/my-calendar-i/tags: -------------------------------------------------------------------------------- 1 | Binary search>C++ set 2 | -------------------------------------------------------------------------------- /Solutions/M/my-calendar-ii/tags: -------------------------------------------------------------------------------- 1 | Intervals>Overlap 2 | -------------------------------------------------------------------------------- /Solutions/N/n-ary-tree-level-order-traversal/tags: -------------------------------------------------------------------------------- 1 | Tree>Order traversal 2 | -------------------------------------------------------------------------------- /Solutions/N/n-ary-tree-preorder-traversal/tags: -------------------------------------------------------------------------------- 1 | Tree>Order traversal 2 | -------------------------------------------------------------------------------- /Solutions/N/n-queens-ii/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration>Combinatorial 2 | -------------------------------------------------------------------------------- /Solutions/N/n-queens/tags: -------------------------------------------------------------------------------- 1 | Backtracking 2 | Brute force enumeration>Combinatorial 3 | -------------------------------------------------------------------------------- /Solutions/N/n-th-tribonacci-number/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/N/naming-a-company/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/N/nearest-exit-from-entrance-in-maze/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/N/neither-minimum-nor-maximum/tags: -------------------------------------------------------------------------------- 1 | Sorting>Partial 2 | -------------------------------------------------------------------------------- /Solutions/N/new-21-game/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Probability 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/N/next-greater-element-iii/tags: -------------------------------------------------------------------------------- 1 | Permutation>Next/Previous 2 | -------------------------------------------------------------------------------- /Solutions/N/next-greater-element-iv/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/N/next-greater-numerically-balanced-number/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/N/next-permutation/tags: -------------------------------------------------------------------------------- 1 | Fraud 2 | Permutation>Next/Previous 3 | -------------------------------------------------------------------------------- /Solutions/N/node-with-highest-edge-score/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Single outdegree graphs 2 | -------------------------------------------------------------------------------- /Solutions/N/non-overlapping-intervals/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Intervals>Overlap 3 | Greedy 4 | -------------------------------------------------------------------------------- /Solutions/N/nth-magical-number/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Mathematics>Number theory>Basic 3 | -------------------------------------------------------------------------------- /Solutions/N/number-complement/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-1-bits/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-beautiful-integers-in-the-range/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Digits 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-beautiful-partitions/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Auxiliary array 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-bit-changes-to-make-two-integers-equal/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-black-blocks/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-closed-islands/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-common-factors/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-dice-rolls-with-target-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Memoised recursion 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-different-integers-in-a-string/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-different-subsequences-gcds/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Prime sieving 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-digit-one/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Digits 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-distinct-averages/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/N/number-of-distinct-roll-sequences/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-enclaves/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Flood fill 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-even-and-odd-bits/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-excellent-pairs/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/N/number-of-good-pairs/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-increasing-paths-in-a-grid/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-laser-beams-in-a-bank/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-orders-in-the-backlog/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-people-aware-of-a-secret/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Auxiliary array 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-recent-calls/tags: -------------------------------------------------------------------------------- 1 | Queue 2 | Design data structure 3 | -------------------------------------------------------------------------------- /Solutions/N/number-of-students-unable-to-eat-lunch/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-subarrays-that-match-a-pattern-i/tags: -------------------------------------------------------------------------------- 1 | String>Search>Hashing 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-subarrays-that-match-a-pattern-ii/tags: -------------------------------------------------------------------------------- 1 | String>Search>Hashing 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-subarrays-with-gcd-equal-to-k/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-subarrays-with-lcm-equal-to-k/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-substrings-with-only-1s/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-valid-words-for-each-puzzle/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | Bitwise operation 3 | -------------------------------------------------------------------------------- /Solutions/N/number-of-ways-to-paint-n-3-grid/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Graph-like state transitions 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-ways-to-reach-a-position-after-exactly-k-steps/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Combinatorics 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-ways-to-split-array/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/N/number-of-zero-filled-subarrays/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/N/numbers-at-most-n-given-digit-set/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Digits 2 | -------------------------------------------------------------------------------- /Solutions/O/odd-even-linked-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/O/ones-and-zeroes/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Knapsack 2 | -------------------------------------------------------------------------------- /Solutions/O/open-the-lock/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/O/optimal-partition-of-string/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Unique elements in subarray 3 | -------------------------------------------------------------------------------- /Solutions/O/orderly-queue/tags: -------------------------------------------------------------------------------- 1 | Permutation>Swaps 2 | -------------------------------------------------------------------------------- /Solutions/O/out-of-boundary-paths/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Memoised recursion 2 | -------------------------------------------------------------------------------- /Solutions/P/pacific-atlantic-water-flow/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Breadth first search 2 | -------------------------------------------------------------------------------- /Solutions/P/paint-house-iii/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/P/pairs-of-songs-with-total-durations-divisible-by-60/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/P/palindrome-linked-list/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Linked list>Recursion 3 | -------------------------------------------------------------------------------- /Solutions/P/palindrome-partitioning-ii/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/P/palindrome-partitioning-iii/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/P/palindrome-partitioning-iv/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/P/palindrome-partitioning/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Dynamic programming>Memoised recursion 3 | -------------------------------------------------------------------------------- /Solutions/P/palindrome-rearrangement-queries/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | Intervals>Overlap 3 | Prefix>Sum 4 | -------------------------------------------------------------------------------- /Solutions/P/palindromic-substrings/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | -------------------------------------------------------------------------------- /Solutions/P/partition-array-according-to-given-pivot/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/P/partition-array-for-maximum-sum/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/P/partition-array-such-that-maximum-difference-is-k/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | -------------------------------------------------------------------------------- /Solutions/P/partition-labels/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/P/partition-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/P/partition-string-into-substrings-with-values-at-most-k/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/P/pascals-triangle-ii/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Array reuse 2 | -------------------------------------------------------------------------------- /Solutions/P/pascals-triangle/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/P/patching-array/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/P/path-crossing/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/P/path-with-minimum-effort/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Dijkstra's algorithm 2 | -------------------------------------------------------------------------------- /Solutions/P/peak-index-in-a-mountain-array/tags: -------------------------------------------------------------------------------- 1 | ChatGPT 2 | Binary search 3 | -------------------------------------------------------------------------------- /Solutions/P/peaks-in-array/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/P/peeking-iterator/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/P/permutation-difference-between-two-strings/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/P/permutation-in-string/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/P/permutations-ii/tags: -------------------------------------------------------------------------------- 1 | Permutation>Next/Previous 2 | -------------------------------------------------------------------------------- /Solutions/P/permutations/tags: -------------------------------------------------------------------------------- 1 | Brute force enumeration>Combinatorial 2 | -------------------------------------------------------------------------------- /Solutions/P/pizza-with-3n-slices/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming>Cyclic array 2 | -------------------------------------------------------------------------------- /Solutions/P/plus-one/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Right to left 2 | Integer operations on strings 3 | -------------------------------------------------------------------------------- /Solutions/P/poor-pigs/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/P/possible-bipartition/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search>Colouring 2 | -------------------------------------------------------------------------------- /Solutions/P/power-grid-maintenance/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/P/power-of-four/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/P/power-of-two/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/P/powx-n/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/P/prefix-and-suffix-search/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | String>Search>Prefix/Suffix 3 | -------------------------------------------------------------------------------- /Solutions/P/prime-in-diagonal/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/P/prime-pairs-with-target-sum/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Prime sieving 2 | -------------------------------------------------------------------------------- /Solutions/P/print-foobar-alternately/tags: -------------------------------------------------------------------------------- 1 | Concurrency 2 | -------------------------------------------------------------------------------- /Solutions/P/print-in-order/tags: -------------------------------------------------------------------------------- 1 | Concurrency 2 | -------------------------------------------------------------------------------- /Solutions/P/print-zero-even-odd/tags: -------------------------------------------------------------------------------- 1 | Concurrency 2 | -------------------------------------------------------------------------------- /Solutions/P/process-tasks-using-servers/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/P/product-of-array-except-self/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | -------------------------------------------------------------------------------- /Solutions/P/product-of-the-last-k-numbers/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/P/put-marbles-in-bags/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/Q/queue-reconstruction-by-height/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/R/rabbits-in-forest/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/R/range-sum-query-2d-immutable/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum>2D 2 | -------------------------------------------------------------------------------- /Solutions/R/range-sum-query-immutable/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | -------------------------------------------------------------------------------- /Solutions/R/range-sum-query-mutable/tags: -------------------------------------------------------------------------------- 1 | Segment tree 2 | -------------------------------------------------------------------------------- /Solutions/R/rank-transform-of-a-matrix/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/R/rank-transform-of-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/R/ransom-note/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/R/reach-end-of-array-with-max-score/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/R/reachable-nodes-with-restrictions/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/R/rearrange-array-elements-by-sign/tags: -------------------------------------------------------------------------------- 1 | Two pointers 2 | -------------------------------------------------------------------------------- /Solutions/R/rearrange-array-to-maximize-prefix-score/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/R/rearrange-k-substrings-to-form-target-string/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/R/rearranging-fruits/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/R/reconstruct-original-digits-from-english/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Process in unusual order 3 | -------------------------------------------------------------------------------- /Solutions/R/rectangle-area/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/R/redistribute-characters-to-make-all-strings-equal/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/R/reducing-dishes/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Prefix>Sum 3 | -------------------------------------------------------------------------------- /Solutions/R/reduction-operations-to-make-the-array-elements-equal/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/R/redundant-connection/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/R/regions-cut-by-slashes/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | Matrix 3 | -------------------------------------------------------------------------------- /Solutions/R/relative-ranks/tags: -------------------------------------------------------------------------------- 1 | Sorting>Remembering index 2 | Permutation>Inverse 3 | -------------------------------------------------------------------------------- /Solutions/R/relative-sort-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | Sorting>Custom 3 | -------------------------------------------------------------------------------- /Solutions/R/relocate-marbles/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-adjacent-almost-equal-characters/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-all-adjacent-duplicates-in-string-ii/tags: -------------------------------------------------------------------------------- 1 | Stack>From array elements 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-all-adjacent-duplicates-in-string/tags: -------------------------------------------------------------------------------- 1 | Array scanning>In-place modification 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-boxes/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-colored-pieces-if-both-neighbors-are-the-same-color/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-covered-intervals/tags: -------------------------------------------------------------------------------- 1 | Intervals>Overlap 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-duplicate-letters/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Greedy 3 | String>Subsequence 4 | -------------------------------------------------------------------------------- /Solutions/R/remove-duplicates-from-sorted-array-ii/tags: -------------------------------------------------------------------------------- 1 | Array scanning>In-place modification 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-duplicates-from-sorted-array/tags: -------------------------------------------------------------------------------- 1 | Array scanning>In-place modification 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-element/tags: -------------------------------------------------------------------------------- 1 | Array scanning>In-place modification 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-letter-to-equalize-frequency/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Group items 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-linked-list-elements/tags: -------------------------------------------------------------------------------- 1 | Linked list>Recursion 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-max-number-of-edges-to-keep-graph-fully-traversable/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-methods-from-project/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-nodes-from-linked-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Recursion 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-nth-node-from-end-of-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration>Slow and fast pointers 2 | -------------------------------------------------------------------------------- /Solutions/R/remove-stones-to-minimize-the-total/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/R/removing-stars-from-a-string/tags: -------------------------------------------------------------------------------- 1 | Stack 2 | -------------------------------------------------------------------------------- /Solutions/R/reorder-list/tags: -------------------------------------------------------------------------------- 1 | Linked list>Iteration 2 | -------------------------------------------------------------------------------- /Solutions/R/reorganize-string/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/R/replace-non-coprime-numbers-in-array/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>GCD/LCM 2 | Stack 3 | -------------------------------------------------------------------------------- /Solutions/R/replace-words/tags: -------------------------------------------------------------------------------- 1 | Trie 2 | -------------------------------------------------------------------------------- /Solutions/R/report-spam-message/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/R/reschedule-meetings-for-maximum-free-time-i/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Sliding window 3 | -------------------------------------------------------------------------------- /Solutions/R/restore-ip-addresses/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/R/restore-the-array-from-adjacent-pairs/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Degree counting 2 | -------------------------------------------------------------------------------- /Solutions/R/restore-the-array/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/R/reveal-cards-in-increasing-order/tags: -------------------------------------------------------------------------------- 1 | Divide and conquer 2 | -------------------------------------------------------------------------------- /Solutions/R/reverse-odd-levels-of-binary-tree/tags: -------------------------------------------------------------------------------- 1 | Tree>Order traversal 2 | -------------------------------------------------------------------------------- /Solutions/R/reverse-vowels-of-a-string/tags: -------------------------------------------------------------------------------- 1 | Array scanning>In-place modification 2 | Two pointers 3 | -------------------------------------------------------------------------------- /Solutions/R/reverse-words-in-a-string-iii/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/R/right-triangles/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | Mathematics>Combinatorics 3 | -------------------------------------------------------------------------------- /Solutions/R/rotate-string/tags: -------------------------------------------------------------------------------- 1 | String>Search>Cylic array 2 | -------------------------------------------------------------------------------- /Solutions/S/satisfiability-of-equality-equations/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/S/score-after-flipping-matrix/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/S/semi-ordered-permutation/tags: -------------------------------------------------------------------------------- 1 | Permutation>Swaps 2 | -------------------------------------------------------------------------------- /Solutions/S/separate-black-and-white-balls/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/S/set-intersection-size-at-least-two/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | Greedy 3 | Intervals 4 | -------------------------------------------------------------------------------- /Solutions/S/shift-distance-between-two-strings/tags: -------------------------------------------------------------------------------- 1 | Prefix>Sum 2 | Dynamic programming>Cyclic array 3 | -------------------------------------------------------------------------------- /Solutions/S/shortest-uncommon-substring-in-an-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | String>Search 3 | -------------------------------------------------------------------------------- /Solutions/S/similar-string-groups/tags: -------------------------------------------------------------------------------- 1 | Disjoint set union 2 | -------------------------------------------------------------------------------- /Solutions/S/simple-bank-system/tags: -------------------------------------------------------------------------------- 1 | Design data structure 2 | -------------------------------------------------------------------------------- /Solutions/S/sliding-subarray-beauty/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/S/smallest-missing-integer-greater-than-sequential-prefix-sum/tags: -------------------------------------------------------------------------------- 1 | Array scanning 2 | -------------------------------------------------------------------------------- /Solutions/S/smallest-number-with-all-set-bits/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/S/smallest-sufficient-team/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | Dynamic programming>Subsets 3 | -------------------------------------------------------------------------------- /Solutions/S/snapshot-array/tags: -------------------------------------------------------------------------------- 1 | Design data structure>Persistent 2 | Binary search>C++ set 3 | -------------------------------------------------------------------------------- /Solutions/S/sort-an-array/tags: -------------------------------------------------------------------------------- 1 | Sorting>Implementation 2 | Priority queue 3 | -------------------------------------------------------------------------------- /Solutions/S/sort-integers-by-the-number-of-1-bits/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/S/sort-matrix-by-diagonals/tags: -------------------------------------------------------------------------------- 1 | Matrix 2 | -------------------------------------------------------------------------------- /Solutions/S/sort-the-jumbled-numbers/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/S/sort-the-people/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/S/sort-the-students-by-their-kth-score/tags: -------------------------------------------------------------------------------- 1 | Sorting>Custom 2 | -------------------------------------------------------------------------------- /Solutions/S/sorting-three-groups/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/S/special-array-ii/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Location of previous element with same value 2 | -------------------------------------------------------------------------------- /Solutions/S/special-array-with-x-elements-greater-than-or-equal-x/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/S/spiral-matrix-iii/tags: -------------------------------------------------------------------------------- 1 | Matrix>Traversal 2 | -------------------------------------------------------------------------------- /Solutions/S/split-array-largest-sum/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Greedy 3 | -------------------------------------------------------------------------------- /Solutions/S/split-message-based-on-limit/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | Suboptimal solution 3 | -------------------------------------------------------------------------------- /Solutions/S/split-strings-by-separator/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | -------------------------------------------------------------------------------- /Solutions/S/split-the-array/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/S/split-with-minimum-sum/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | -------------------------------------------------------------------------------- /Solutions/S/stone-game-iii/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | ChatGPT 3 | Two player games 4 | -------------------------------------------------------------------------------- /Solutions/S/strange-printer/tags: -------------------------------------------------------------------------------- 1 | ChatGPT 2 | Dynamic programming 3 | -------------------------------------------------------------------------------- /Solutions/S/strictly-palindromic-number/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/S/string-compression-iii/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Contiguous region 2 | -------------------------------------------------------------------------------- /Solutions/S/subarrays-with-k-different-integers/tags: -------------------------------------------------------------------------------- 1 | Sliding window 2 | Hashmap>Counter 3 | -------------------------------------------------------------------------------- /Solutions/S/sum-in-a-matrix/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/S/sum-multiples/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Number theory>Basic 2 | -------------------------------------------------------------------------------- /Solutions/S/sum-of-distances/tags: -------------------------------------------------------------------------------- 1 | Array scanning>From both ends of array 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/S/sum-of-k-mirror-numbers/tags: -------------------------------------------------------------------------------- 1 | Palindrome 2 | -------------------------------------------------------------------------------- /Solutions/S/sum-of-matrix-after-queries/tags: -------------------------------------------------------------------------------- 1 | Time reversed simulation 2 | Hashmap 3 | -------------------------------------------------------------------------------- /Solutions/S/sum-of-subarray-minimums/tags: -------------------------------------------------------------------------------- 1 | Sorting>Remembering index 2 | Disjoint set union 3 | -------------------------------------------------------------------------------- /Solutions/S/sum-of-values-at-indices-with-k-set-bits/tags: -------------------------------------------------------------------------------- 1 | Bitwise operation 2 | -------------------------------------------------------------------------------- /Solutions/T/the-two-sneaky-numbers-of-digitville/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/T/time-needed-to-inform-all-employees/tags: -------------------------------------------------------------------------------- 1 | Graph theory>Depth first search 2 | ChatGPT 3 | -------------------------------------------------------------------------------- /Solutions/T/time-to-cross-a-bridge/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/T/total-cost-to-hire-k-workers/tags: -------------------------------------------------------------------------------- 1 | Priority queue 2 | -------------------------------------------------------------------------------- /Solutions/T/transformed-array/tags: -------------------------------------------------------------------------------- 1 | Array scanning>Cyclic array 2 | -------------------------------------------------------------------------------- /Solutions/T/type-of-triangle-ii/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Geometry 2 | -------------------------------------------------------------------------------- /Solutions/U/uncommon-words-from-two-sentences/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/U/unique-number-of-occurrences/tags: -------------------------------------------------------------------------------- 1 | Hashmap>Counter 2 | -------------------------------------------------------------------------------- /Solutions/U/utf-8-validation/tags: -------------------------------------------------------------------------------- 1 | String>Parsing 2 | Bitwise operation 3 | -------------------------------------------------------------------------------- /Solutions/V/vowels-game-in-a-string/tags: -------------------------------------------------------------------------------- 1 | Two player games 2 | -------------------------------------------------------------------------------- /Solutions/W/walking-robot-simulation/tags: -------------------------------------------------------------------------------- 1 | Hashmap 2 | -------------------------------------------------------------------------------- /Solutions/W/water-bottles/tags: -------------------------------------------------------------------------------- 1 | Mathematics>Basic 2 | -------------------------------------------------------------------------------- /Solutions/W/ways-to-express-an-integer-as-sum-of-powers/tags: -------------------------------------------------------------------------------- 1 | Dynamic programming 2 | -------------------------------------------------------------------------------- /Solutions/W/where-will-the-ball-fall/tags: -------------------------------------------------------------------------------- 1 | Matrix>Path 2 | Graph theory>Single outdegree graphs 3 | -------------------------------------------------------------------------------- /Solutions/W/widest-vertical-area-between-two-points-containing-no-points/tags: -------------------------------------------------------------------------------- 1 | Sorting 2 | -------------------------------------------------------------------------------- /Solutions/W/words-within-two-edits-of-dictionary/tags: -------------------------------------------------------------------------------- 1 | Meet in the middle 2 | -------------------------------------------------------------------------------- /Solutions/Z/zero-array-transformation-ii/tags: -------------------------------------------------------------------------------- 1 | Binary search 2 | Prefix>Sum>For range updates 3 | -------------------------------------------------------------------------------- /Solutions/Z/zero-array-transformation-iii/tags: -------------------------------------------------------------------------------- 1 | Greedy 2 | Priority queue 3 | Intervals 4 | -------------------------------------------------------------------------------- /Solutions/Z/zigzag-grid-traversal-with-skip/tags: -------------------------------------------------------------------------------- 1 | Matrix>Traversal 2 | -------------------------------------------------------------------------------- /Solutions/tags: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/razimantv/leetcode-solutions/HEAD/Solutions/tags -------------------------------------------------------------------------------- /tag_processor/compile_flags.txt: -------------------------------------------------------------------------------- 1 | -W 2 | -Wall 3 | -std=c++20 4 | --------------------------------------------------------------------------------