File tree
290 files changed
+3890
-533
lines changed- problems
- accepted-candidates-from-the-interviews
- add-digits
- advantage-shuffle
- all-elements-in-two-binary-search-trees
- apply-discount-every-n-orders
- arithmetic-subarrays
- array-of-doubled-pairs
- average-height-of-buildings-in-each-segment
- balance-a-binary-search-tree
- basic-calculator
- beautiful-arrangement
- binary-search-tree-iterator
- binary-search-tree-to-greater-sum-tree
- binary-subarrays-with-sum
- break-a-palindrome
- brightest-position-on-street
- build-an-array-with-stack-operations
- build-binary-expression-tree-from-infix-expression
- bulb-switcher-iii
- check-if-numbers-are-ascending-in-a-sentence
- check-if-two-expression-trees-are-equivalent
- check-if-word-can-be-placed-in-crossword
- cinema-seat-allocation
- circle-and-rectangle-overlapping
- connecting-cities-with-minimum-cost
- consecutive-characters
- consecutive-numbers
- constrained-subsequence-sum
- construct-binary-search-tree-from-preorder-traversal
- convert-1d-array-into-2d-array
- convert-binary-search-tree-to-sorted-doubly-linked-list
- coordinate-with-maximum-network-quality
- count-all-possible-routes
- count-good-triplets
- count-number-of-maximum-bitwise-or-subsets
- count-number-of-pairs-with-absolute-difference-k
- count-number-of-teams
- count-primes
- count-servers-that-communicate
- count-subarrays-with-more-ones-than-zeros
- course-schedule-iii
- create-a-session-bar-chart
- customers-who-never-order
- daily-temperatures
- data-stream-as-disjoint-intervals
- decompress-run-length-encoded-list
- delete-leaves-with-a-given-value
- delete-n-nodes-after-m-nodes-of-a-linked-list
- delete-node-in-a-bst
- department-highest-salary
- department-top-three-salaries
- design-a-stack-with-increment-operation
- design-browser-history
- design-in-memory-file-system
- design-most-recently-used-queue
- design-parking-system
- design-underground-system
- detect-cycles-in-2d-grid
- detect-squares
- different-ways-to-add-parentheses
- display-table-of-food-orders-in-a-restaurant
- distinct-subsequences-ii
- divide-array-in-sets-of-k-consecutive-numbers
- dot-product-of-two-sparse-vectors
- duplicate-emails
- employee-importance
- employees-with-missing-information
- encode-and-decode-tinyurl
- encode-number
- expression-add-operators
- fancy-sequence
- final-value-of-variable-after-performing-operations
- find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
- find-a-value-of-a-mysterious-function-closest-to-target
- find-all-the-lonely-nodes
- find-eventual-safe-states
- find-k-pairs-with-smallest-sums
- find-longest-awesome-substring
- find-minimum-time-to-finish-all-jobs
- find-missing-observations
- find-original-array-from-doubled-array
- find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
- find-the-middle-index-in-array
- find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
- find-winner-on-a-tic-tac-toe-game
- first-and-last-call-on-the-same-day
- first-day-where-you-have-been-in-all-the-rooms
- first-unique-character-in-a-string
- get-the-maximum-score
- get-watched-videos-by-your-friends
- graph-connectivity-with-threshold
- grid-game
- how-many-numbers-are-smaller-than-the-current-number
- implement-rand10-using-rand7
- increasing-subsequences
- insert-delete-getrandom-o1-duplicates-allowed
- island-perimeter
- jump-game-iii
- jump-game-iv
- k-empty-slots
- k-similar-strings
- keys-and-rooms
- kth-smallest-product-of-two-sorted-arrays
- kth-smallest-subarray-sum
- largest-bst-subtree
- largest-multiple-of-three
- last-moment-before-all-ants-fall-out-of-a-plank
- least-number-of-unique-integers-after-k-removals
- leetcodify-similar-friends
- lexicographically-smallest-string-after-applying-operations
- longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
- longest-duplicate-substring
- longest-happy-string
- longest-repeating-character-replacement
- longest-subarray-of-1s-after-deleting-one-element
- longest-subsequence-repeated-k-times
- longest-zigzag-path-in-a-binary-tree
- low-quality-problems
- lowest-common-ancestor-of-a-binary-tree-iii
- lucky-numbers-in-a-matrix
- max-consecutive-ones-iii
- max-points-on-a-line
- max-value-of-equation
- maximize-the-confusion-of-an-exam
- maximum-alternating-subarray-sum
- maximum-difference-between-increasing-elements
- maximum-distance-in-arrays
- maximum-earnings-from-taxi
- maximum-height-by-stacking-cuboids
- maximum-length-of-a-concatenated-string-with-unique-characters
- maximum-length-of-repeated-subarray
- maximum-nesting-depth-of-two-valid-parentheses-strings
- maximum-number-of-coins-you-can-get
- maximum-number-of-darts-inside-of-a-circular-dartboard
- maximum-number-of-events-that-can-be-attended
- maximum-number-of-non-overlapping-substrings
- maximum-number-of-visible-points
- maximum-number-of-ways-to-partition-an-array
- maximum-score-after-splitting-a-string
- maximum-score-of-a-good-subarray
- maximum-subarray
- maximum-sum-bst-in-binary-tree
- maximum-units-on-a-truck
- min-cost-to-connect-all-points
- mini-parser
- minimize-deviation-in-array
- minimize-hamming-distance-after-swap-operations
- minimum-area-rectangle-ii
- minimum-cost-to-connect-two-groups-of-points
- minimum-cost-to-make-at-least-one-valid-path-in-a-grid
- minimum-difference-between-largest-and-smallest-value-in-three-moves
- minimum-distance-to-type-a-word-using-two-fingers
- minimum-falling-path-sum-ii
- minimum-incompatibility
- minimum-insertions-to-balance-a-parentheses-string
- minimum-moves-to-convert-string
- minimum-number-of-days-to-make-m-bouquets
- minimum-number-of-moves-to-seat-everyone
- minimum-number-of-operations-to-make-array-continuous
- minimum-number-of-steps-to-make-two-strings-anagram
- minimum-number-of-taps-to-open-to-water-a-garden
- minimum-numbers-of-function-calls-to-make-target-array
- minimum-one-bit-operations-to-make-integers-zero
- minimum-operations-to-make-a-uni-value-grid
- minimum-operations-to-reduce-x-to-zero
- minimum-time-for-k-virus-variants-to-spread
- minimum-time-to-collect-all-apples-in-a-tree
- most-frequent-subtree-sum
- next-greater-element-ii
- nim-game
- number-of-accounts-that-did-not-stream
- number-of-dice-rolls-with-target-sum
- number-of-good-pairs
- number-of-islands-ii
- number-of-pairs-of-strings-with-concatenation-equal-to-target
- number-of-substrings-with-only-1s
- number-of-transactions-per-visit
- numbers-with-same-consecutive-differences
- operations-on-tree
- page-recommendations
- palindrome-partitioning-iii
- parallel-courses-ii
- partition-array-into-two-arrays-to-minimize-sum-difference
- path-with-minimum-effort
- peeking-iterator
- percentage-of-users-attended-a-contest
- perfect-squares
- pizza-with-3n-slices
- preimage-size-of-factorial-zeroes-function
- prime-number-of-set-bits-in-binary-representation
- print-immutable-linked-list-in-reverse
- product-of-the-last-k-numbers
- put-boxes-into-the-warehouse-i
- random-pick-index
- rank-scores
- rearrange-spaces-between-words
- reconstruct-a-2-row-binary-matrix
- reducing-dishes
- remove-boxes
- remove-colored-pieces-if-both-neighbors-are-the-same-color
- remove-duplicate-letters
- reverse-bits
- reverse-subarray-to-maximize-array-value
- rotate-image
- running-total-for-different-genders
- second-minimum-time-to-reach-destination
- shopping-offers
- shortest-path-in-a-grid-with-obstacles-elimination
- simple-bank-system
- simplify-path
- single-number-ii
- smallest-k-length-subsequence-with-occurrences-of-a-letter
- sort-integers-by-the-power-value
- split-concatenated-strings
- stock-price-fluctuation
- stone-game-iv
- stone-game-ix
- stone-game-v
- stone-game-vii
- subarray-sum-equals-k
- subtree-removal-game-with-fibonacci-tree
- sum-of-beauty-in-the-array
- swap-for-longest-repeated-character-substring
- swim-in-rising-water
- the-maze-ii
- the-maze-iii
- the-number-of-seniors-and-juniors-to-join-the-company
- the-number-of-seniors-and-juniors-to-join-the-company-ii
- the-score-of-students-solving-math-expression
- the-skyline-problem
- the-time-when-the-network-becomes-idle
- throne-inheritance
- trapping-rain-water-ii
- trips-and-users
- tweet-counts-per-frequency
- two-out-of-three
- unique-binary-search-trees
- unique-number-of-occurrences
- users-that-actively-request-confirmation-messages
- valid-boomerang
- where-will-the-ball-fall
- word-ladder
- xor-operation-in-an-array
- xor-queries-of-a-subarray
- readme
- tag
- array
- backtracking
- binary-indexed-tree
- binary-search
- bit-manipulation
- bitmask
- breadth-first-search
- counting
- depth-first-search
- design
- divide-and-conquer
- dynamic-programming
- enumeration
- game-theory
- geometry
- graph
- greedy
- hash-table
- heap-priority-queue
- iterator
- math
- matrix
- memoization
- merge-sort
- monotonic-stack
- number-theory
- ordered-set
- prefix-sum
- segment-tree
- shortest-path
- simulation
- sliding-window
- sorting
- stack
- string
- two-pointers
- union-find
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
290 files changed
+3890
-533
lines changedDiff for: README.md
+43-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
81 | 122 |
| |
82 | 123 |
| |
83 | 124 |
| |
| |||
164 | 205 |
| |
165 | 206 |
| |
166 | 207 |
| |
167 |
| - | |
| 208 | + | |
168 | 209 |
| |
169 | 210 |
| |
170 | 211 |
| |
| |||
523 | 564 |
| |
524 | 565 |
| |
525 | 566 |
| |
526 |
| - | |
| 567 | + | |
527 | 568 |
| |
528 | 569 |
| |
529 | 570 |
| |
|
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 | + |
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 | + |
Diff for: problems/add-digits/README.md
+2-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 | 47 |
| |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
|
Diff for: problems/advantage-shuffle/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 | 36 |
| |
| 37 | + | |
38 | 38 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 | 66 |
| |
| 67 | + | |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
75 | 74 |
| |
76 | 75 |
| |
| 76 | + | |
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
|
Diff for: problems/arithmetic-subarrays/README.md
-4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 | 67 |
| |
72 | 68 |
| |
73 | 69 |
| |
|
+4-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
57 | 56 |
| |
58 | 57 |
| |
| 58 | + | |
59 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + |
0 commit comments