File tree
1,166 files changed
+39407
-0
lines changed- leetcode-cpp
- 01-matrix
- 1048-longest-string-chain
- 1146-snapshot-array
- 121-best-time-to-buy-and-sell-stock
- 1219-path-with-maximum-gold
- 1291-sequential-digits
- 1297-maximum-number-of-occurrences-of-a-substring
- 1305-all-elements-in-two-binary-search-trees
- 132-pattern
- 1367-linked-list-in-binary-tree
- 1371-find-the-longest-substring-containing-vowels-in-even-counts
- 1672-richest-customer-wealth
- 2-keys-keyboard
- 3sum
- 438-find-all-anagrams-in-a-string
- 454-4sum-ii
- 486-predict-the-winner
- 4sum
- 4sum-ii
- 638-shopping-offers
- 684-redundant-connection
- 834-sum-of-distances-in-tree
- 849-maximize-distance-to-closest-person
- accounts-merge
- add-two-numbers
- add-two-numbers-ii
- advantage-shuffle
- all-nodes-distance-k-in-binary-tree
- all-possible-full-binary-trees
- arranging-coins
- as-far-from-land-as-possible
- assign-cookies
- asteroid-collision
- average-of-levels-in-binary-tree
- backspace-string-compare
- balanced-binary-tree
- beautiful-arrangement-ii
- beautiful-array
- best-time-to-buy-and-sell-stock
- best-time-to-buy-and-sell-stock-iii
- best-time-to-buy-and-sell-stock-iv
- best-time-to-buy-and-sell-stock-with-cooldown
- binary-search
- binary-search-tree-iterator
- binary-search-tree-to-greater-sum-tree
- binary-subarrays-with-sum
- binary-tree-cameras
- binary-tree-inorder-traversal
- binary-tree-level-order-traversal-ii
- binary-tree-maximum-path-sum
- binary-tree-paths
- binary-tree-postorder-traversal
- binary-tree-preorder-traversal
- binary-tree-pruning
- bitwise-and-of-numbers-range
- boats-to-save-people
- burst-balloons
- camelcase-matching
- candy
- capacity-to-ship-packages-within-d-days
- car-pooling
- cat-and-mouse
- cat-and-mouse-ii
- check-if-a-string-can-break-another-string
- check-if-binary-string-has-at-most-one-segment-of-ones
- checking-existence-of-edge-length-limited-paths
- cherry-pickup
- cherry-pickup-ii
- cinema-seat-allocation
- circular-array-loop
- climbing-stairs
- clone-graph
- coin-change
- combination-sum-iii
- combinations
- compare-version-numbers
- concatenated-words
- construct-binary-search-tree-from-preorder-traversal
- construct-binary-tree-from-inorder-and-postorder-traversal
- construct-binary-tree-from-preorder-and-inorder-traversal
- construct-k-palindrome-strings
- construct-string-from-binary-tree
- contiguous-array
- continuous-subarray-sum
- convert-bst-to-greater-tree
- convert-sorted-array-to-binary-search-tree
- convert-sorted-list-to-binary-search-tree
- copy-list-with-random-pointer
- count-good-meals
- count-good-nodes-in-binary-tree
- count-of-range-sum
- count-of-smaller-numbers-after-self
- count-vowels-permutation
- counting-bits
- course-schedule
- course-schedule-ii
- course-schedule-iii
- course-schedule-iv
- cousins-in-binary-tree
- custom-sort-string
- daily-temperatures
- decode-string
- decode-xored-array
- decode-xored-permutation
- deepest-leaves-sum
- delete-duplicate-emails
- delete-node-in-a-bst
- delete-node-in-a-linked-list
- delete-nodes-and-return-forest
- department-highest-salary
- design-hashset
- diameter-of-binary-tree
- distinct-subsequences
- distribute-coins-in-binary-tree
- divide-array-in-sets-of-k-consecutive-numbers
- domino-and-tromino-tiling
- edit-distance
- employee-importance
- employees-earning-more-than-their-managers
- encode-and-decode-tinyurl
- equal-sum-arrays-with-minimum-number-of-operations
- evaluate-division
- find-all-anagrams-in-a-string
- find-and-replace-pattern
- find-bottom-left-tree-value
- find-center-of-star-graph
- find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
- find-eventual-safe-states
- find-first-and-last-position-of-element-in-sorted-array
- find-k-closest-elements
- find-k-pairs-with-smallest-sums
- find-median-from-data-stream
- find-minimum-in-rotated-sorted-array
- find-n-unique-integers-sum-up-to-zero
- find-right-interval
- find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
- find-the-duplicate-number
- find-the-smallest-divisor-given-a-threshold
- find-the-town-judge
- first-bad-version
- first-missing-positive
- flatten-binary-tree-to-linked-list
- flower-planting-with-no-adjacent
- frog-jump
- fruit-into-baskets
- game-of-life
- gas-station
- generate-parentheses
- group-the-people-given-the-group-size-they-belong-to
- h-index
- h-index-ii
- hand-of-straights
- heaters
- house-robber
- house-robber-ii
- house-robber-iii
- implement-trie-prefix-tree
- increasing-triplet-subsequence
- insert-delete-getrandom-o1
- insert-delete-getrandom-o1-duplicates-allowed
- insertion-sort-list
- intersection-of-two-linked-lists
- interval-list-intersections
- invert-binary-tree
- is-graph-bipartite
- island-perimeter
- jump-game
- jump-game-ii
- jump-game-iii
- jump-game-v
- k-closest-points-to-origin
- keys-and-rooms
- knight-probability-in-chessboard
- koko-eating-bananas
- kth-smallest-element-in-a-sorted-matrix
- largest-rectangle-in-histogram
- lemonade-change
- letter-case-permutation
- letter-combinations-of-a-phone-number
- linked-list-cycle
- longest-common-prefix
- longest-common-subsequence
- longest-consecutive-sequence
- longest-increasing-path-in-a-matrix
- longest-increasing-subsequence
- longest-palindromic-subsequence
- longest-palindromic-substring
- longest-repeating-character-replacement
- longest-substring-with-at-least-k-repeating-characters
- longest-substring-without-repeating-characters
- longest-valid-parentheses
- loud-and-rich
- lowest-common-ancestor-of-a-binary-search-tree
- lowest-common-ancestor-of-a-binary-tree
- lru-cache
- majority-element
- majority-element-ii
- making-a-large-island
- map-sum-pairs
- max-consecutive-ones
- maximize-distance-to-closest-person
- maximum-binary-tree
- maximum-depth-of-binary-tree
- maximum-erasure-value
- maximum-gap
- maximum-product-subarray
- maximum-score-from-removing-substrings
- maximum-subarray
- maximum-sum-bst-in-binary-tree
- maximum-sum-circular-subarray
- maximum-width-of-binary-tree
- maximum-xor-of-two-numbers-in-an-array
- maximum-xor-with-an-element-from-array
- median-of-two-sorted-arrays
- merge-intervals
- merge-k-sorted-lists
- merge-sorted-array
- merge-two-sorted-lists
- middle-of-the-linked-list
- min-stack
- minesweeper
- minimum-absolute-sum-difference
- minimum-add-to-make-parentheses-valid
- minimum-ascii-delete-sum-for-two-strings
- minimum-cost-to-make-at-least-one-valid-path-in-a-grid
- minimum-cost-to-move-chips-to-the-same-position
- minimum-depth-of-binary-tree
- minimum-flips-to-make-a-or-b-equal-to-c
- minimum-height-trees
- minimum-limit-of-balls-in-a-bag
- minimum-number-of-days-to-make-m-bouquets
- minimum-number-of-k-consecutive-bit-flips
- minimum-operations-to-reduce-x-to-zero
- minimum-path-sum
- minimum-remove-to-make-valid-parentheses
- minimum-size-subarray-sum
- minimum-swaps-to-make-sequences-increasing
- minimum-window-substring
- most-stones-removed-with-same-row-or-column
- multiply-strings
- n-ary-tree-level-order-traversal
- n-ary-tree-preorder-traversal
- n-queens
- network-delay-time
- next-greater-element-ii
- next-permutation
- non-overlapping-intervals
- nth-highest-salary
- number-of-1-bits
- number-of-burgers-with-no-waste-of-ingredients
- number-of-closed-islands
- number-of-dice-rolls-with-target-sum
- number-of-enclaves
- number-of-islands
- number-of-longest-increasing-subsequence
- number-of-matching-subsequences
- number-of-operations-to-make-network-connected
- number-of-provinces
- number-of-steps-to-reduce-a-number-to-zero
- number-of-ways-to-stay-in-the-same-place-after-some-steps
- odd-even-linked-list
- out-of-boundary-paths
- pacific-atlantic-water-flow
- palindrome-linked-list
- palindrome-partitioning
- palindrome-partitioning-ii
- palindromic-substrings
- partition-equal-subset-sum
- partition-labels
- partition-to-k-equal-sum-subsets
- pascals-triangle
- pascals-triangle-ii
- path-in-zigzag-labelled-binary-tree
- path-sum
- path-sum-ii
- path-sum-iii
- perfect-squares
- permutation-in-string
- permutations
- permutations-ii
- plates-between-candles
- populating-next-right-pointers-in-each-node
- populating-next-right-pointers-in-each-node-ii
- possible-bipartition
- power-of-four
- power-of-three
- power-of-two
- powx-n
- previous-permutation-with-one-swap
- queries-on-a-permutation-with-key
- queue-reconstruction-by-height
- rabbits-in-forest
- range-sum-query-mutable
- reach-a-number
- reconstruct-itinerary
- reduce-array-size-to-the-half
- redundant-connection
- regions-cut-by-slashes
- regular-expression-matching
- remove-all-adjacent-duplicates-in-string
- remove-all-adjacent-duplicates-in-string-ii
- remove-invalid-parentheses
- remove-k-digits
- remove-nth-node-from-end-of-list
- remove-sub-folders-from-the-filesystem
- reorder-list
- reordered-power-of-2
- reorganize-string
- reverse-bits
- reverse-linked-list
- reverse-linked-list-ii
- reverse-nodes-in-k-group
- reverse-pairs
- reverse-substrings-between-each-pair-of-parentheses
- robot-bounded-in-circle
- rotate-image
- rotate-list
- rotting-oranges
- russian-doll-envelopes
- satisfiability-of-equality-equations
- score-of-parentheses
- search-a-2d-matrix
- search-a-2d-matrix-ii
- search-in-a-binary-search-tree
- search-in-rotated-sorted-array
- search-in-rotated-sorted-array-ii
- serialize-and-deserialize-binary-tree
- set-matrix-zeroes
- shortest-common-supersequence
- shortest-completing-word
- shortest-path-in-a-grid-with-obstacles-elimination
- shortest-path-in-binary-matrix
- shortest-path-with-alternating-colors
- shortest-subarray-with-sum-at-least-k
- similar-string-groups
- single-element-in-a-sorted-array
- single-number
- single-number-ii
- single-number-iii
- sliding-window-maximum
- smallest-range-covering-elements-from-k-lists
- smallest-subtree-with-all-the-deepest-nodes
- sort-characters-by-frequency
- sort-colors
- sort-list
- soup-servings
- spiral-matrix
- split-linked-list-in-parts
- split-two-strings-to-make-palindrome
- sqrtx
- squares-of-a-sorted-array
- stone-game-iii
- string-without-aaa-or-bbb
- subarray-product-less-than-k
- subarray-sum-equals-k
- subarrays-with-k-different-integers
- subdomain-visit-count
- subsets
- subsets-ii
- substring-with-concatenation-of-all-words
- subtree-of-another-tree
- sudoku-solver
- sum-of-mutated-array-closest-to-target
- sum-of-root-to-leaf-binary-numbers
- sum-of-square-numbers
- sum-of-two-integers
- sum-root-to-leaf-numbers
- surrounded-regions
- swap-nodes-in-pairs
- symmetric-tree
- target-sum
- task-scheduler
- the-time-when-the-network-becomes-idle
- time-based-key-value-store
- time-needed-to-inform-all-employees
- top-k-frequent-elements
- total-hamming-distance
- trapping-rain-water
- trapping-rain-water-ii
- triangle
- trim-a-binary-search-tree
- two-sum
- two-sum-iv-input-is-a-bst
- unique-binary-search-trees-ii
- unique-email-addresses
- unique-paths
- unique-paths-ii
- valid-sudoku
- validate-binary-search-tree
- validate-ip-address
- validate-stack-sequences
- verify-preorder-serialization-of-a-binary-tree
- verifying-an-alien-dictionary
- vertical-order-traversal-of-a-binary-tree
- wiggle-subsequence
- wildcard-matching
- word-break
- word-break-ii
- word-ladder
- word-ladder-ii
- word-search
- word-search-ii
- xor-queries-of-a-subarray
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,166 files changed
+39407
-0
lines changedLines changed: 66 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + |
Lines changed: 57 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + |
Lines changed: 71 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + |
Lines changed: 60 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + |
Lines changed: 88 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + |
0 commit comments