File tree
206 files changed
+1481
-175
lines changed- problems
- 4sum
- all-paths-from-source-to-target
- arithmetic-subarrays
- average-of-levels-in-binary-tree
- avoid-flood-in-the-city
- best-position-for-a-service-centre
- binary-search-tree-iterator-ii
- build-an-array-with-stack-operations
- bulb-switcher-iv
- can-make-arithmetic-progression-from-sequence
- can-place-flowers
- check-if-two-expression-trees-are-equivalent
- circle-and-rectangle-overlapping
- clone-binary-tree-with-random-pointer
- clone-n-ary-tree
- closest-binary-search-tree-value
- coloring-a-border
- consecutive-characters
- constrained-subsequence-sum
- convert-a-number-to-hexadecimal
- count-all-possible-routes
- count-number-of-teams
- count-special-quadruplets
- count-submatrices-with-all-ones
- count-the-number-of-experiments
- countries-you-can-safely-invest-in
- crawler-log-folder
- create-a-session-bar-chart
- customer-who-visited-but-did-not-make-any-transactions
- delete-n-nodes-after-m-nodes-of-a-linked-list
- design-a-file-sharing-system
- design-add-and-search-words-data-structure
- design-an-expression-tree-with-evaluate-function
- design-browser-history
- design-phone-directory
- detect-cycles-in-2d-grid
- diameter-of-n-ary-tree
- dice-roll-simulation
- different-ways-to-add-parentheses
- display-table-of-food-orders-in-a-restaurant
- distinct-echo-substrings
- distinct-subsequences-ii
- evaluate-reverse-polish-notation
- find-a-value-of-a-mysterious-function-closest-to-target
- find-all-groups-of-farmland
- find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
- find-cutoff-score-for-each-school
- find-duplicate-file-in-system
- find-duplicate-subtrees
- find-if-path-exists-in-graph
- find-kth-bit-in-nth-binary-string
- find-longest-awesome-substring
- find-median-from-data-stream
- find-peak-element
- find-root-of-n-ary-tree
- find-the-duplicate-number
- find-the-index-of-the-large-integer
- find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
- find-the-middle-index-in-array
- first-day-where-you-have-been-in-all-the-rooms
- first-unique-character-in-a-string
- flip-game-ii
- flood-fill
- freedom-trail
- frog-jump
- gcd-sort-of-an-array
- get-equal-substrings-within-budget
- get-the-maximum-score
- graph-connectivity-with-threshold
- how-many-apples-can-you-put-into-the-basket
- iterator-for-combination
- jump-game-v
- kth-ancestor-of-a-tree-node
- largest-number
- largest-values-from-labels
- last-moment-before-all-ants-fall-out-of-a-plank
- lemonade-change
- lexicographically-smallest-string-after-applying-operations
- linked-list-in-binary-tree
- logical-or-of-two-binary-grids-represented-as-quad-trees
- longer-contiguous-segments-of-ones-than-zeros
- longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
- longest-happy-string
- make-the-string-great
- make-the-xor-of-all-segments-equal-to-zero
- maximum-69-number
- maximum-depth-of-binary-tree
- maximum-length-of-subarray-with-positive-product
- maximum-number-of-coins-you-can-get
- maximum-number-of-darts-inside-of-a-circular-dartboard
- maximum-number-of-non-overlapping-subarrays-with-sum-equals-target
- maximum-number-of-non-overlapping-substrings
- maximum-number-of-people-that-can-be-caught-in-tag
- maximum-number-of-visible-points
- maximum-performance-of-a-team
- maximum-product-of-the-length-of-two-palindromic-subsequences
- maximum-xor-of-two-numbers-in-an-array
- min-cost-to-connect-all-points
- minimum-add-to-make-parentheses-valid
- minimum-cost-to-connect-two-groups-of-points
- minimum-cost-to-hire-k-workers
- minimum-cost-to-make-at-least-one-valid-path-in-a-grid
- minimum-cost-to-move-chips-to-the-same-position
- minimum-deletion-cost-to-avoid-repeating-letters
- minimum-difference-between-largest-and-smallest-value-in-three-moves
- minimum-insertions-to-balance-a-parentheses-string
- minimum-number-of-arrows-to-burst-balloons
- minimum-number-of-days-to-disconnect-island
- minimum-number-of-days-to-eat-n-oranges
- minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix
- minimum-number-of-increments-on-subarrays-to-form-a-target-array
- minimum-number-of-steps-to-make-two-strings-anagram
- minimum-numbers-of-function-calls-to-make-target-array
- minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits
- minimum-subsequence-in-non-increasing-order
- minimum-swaps-to-arrange-a-binary-grid
- nim-game
- number-of-islands-ii
- number-of-pairs-of-interchangeable-rectangles
- number-of-steps-to-reduce-a-number-to-zero
- number-of-substrings-with-only-1s
- number-of-ways-to-reorder-array-to-get-same-bst
- number-of-ways-to-split-a-string
- numbers-with-same-consecutive-differences
- operations-on-tree
- path-with-maximum-probability
- path-with-minimum-effort
- percentage-of-users-attended-a-contest
- power-of-four
- put-boxes-into-the-warehouse-i
- put-boxes-into-the-warehouse-ii
- range-sum-query-immutable
- rank-teams-by-votes
- rank-transform-of-a-matrix
- rearrange-spaces-between-words
- reduce-array-size-to-the-half
- remove-all-adjacent-duplicates-in-string-ii
- remove-duplicates-from-sorted-list-ii
- reverse-prefix-of-word
- robot-room-cleaner
- russian-doll-envelopes
- sales-analysis-i
- sellers-with-no-sales
- sequence-reconstruction
- serialize-and-deserialize-binary-tree
- shortest-subarray-to-be-removed-to-make-array-sorted
- simplified-fractions
- single-number
- sliding-window-maximum
- smallest-greater-multiple-made-of-two-digits
- smallest-missing-genetic-value-in-each-subtree
- sort-integers-by-the-number-of-1-bits
- stone-game-iv
- stone-game-v
- strings-differ-by-one-character
- subarray-sum-equals-k
- subrectangle-queries
- sum-of-all-odd-length-subarrays
- task-scheduler
- the-maze-iii
- the-most-frequently-ordered-products-for-each-customer
- the-most-recent-orders-for-each-product
- the-most-recent-three-orders
- the-most-similar-path-in-a-graph
- the-number-of-good-subsets
- the-number-of-seniors-and-juniors-to-join-the-company
- the-number-of-weak-characters-in-the-game
- throne-inheritance
- time-needed-to-inform-all-employees
- tweet-counts-per-frequency
- unique-binary-search-trees-ii
- unique-paths-iii
- valid-boomerang
- valid-parenthesis-string
- valid-triangle-number
- web-crawler
- wiggle-sort-ii
- wildcard-matching
- readme
- tag
- array
- backtracking
- bit-manipulation
- bitmask
- breadth-first-search
- counting
- depth-first-search
- design
- dynamic-programming
- enumeration
- graph
- greedy
- hash-table
- math
- matrix
- monotonic-stack
- number-theory
- prefix-sum
- sorting
- stack
- string
- tree
- 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.
206 files changed
+1481
-175
lines changedDiff for: README.md
+16
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 | + | |
81 | 97 |
| |
82 | 98 |
| |
83 | 99 |
| |
|
Diff for: problems/4sum/README.md
+1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + |
+4-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| 68 | + | |
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 |
| - | |
| 72 | + | |
| 73 | + | |
| 74 | + |
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 | + | |
67 | 71 |
| |
68 | 72 |
| |
69 | 73 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
97 | 96 |
| |
98 | 97 |
| |
99 | 98 |
| |
| 99 | + | |
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 |
| - | |
75 | 74 |
| |
| 75 | + | |
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 |
| |
25 | 28 |
| |
26 | 29 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 | 71 |
| |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
|
Diff for: problems/bulb-switcher-iv/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
73 | 72 |
| |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 |
| |
48 | 51 |
| |
49 | 52 |
| |
|
Diff for: problems/can-place-flowers/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
38 | 37 |
| |
| 38 | + | |
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 |
| |
22 | 25 |
| |
23 | 26 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
68 | 67 |
| |
| 68 | + | |
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
20 |
| - | |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 |
| |
24 | 29 |
| |
25 | 30 |
| |
26 |
| - | |
| 31 | + | |
27 | 32 |
| |
28 | 33 |
| |
29 | 34 |
| |
30 | 35 |
| |
31 |
| - | |
| 36 | + | |
32 | 37 |
|
Diff for: problems/clone-n-ary-tree/README.md
+6-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
20 |
| - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 |
| |
22 | 27 |
| |
23 | 28 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 |
| - | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
|
Diff for: problems/coloring-a-border/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
48 | 49 |
| |
49 | 50 |
| |
50 |
| - | |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
|
+4
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 |
| |
68 | 72 |
| |
69 | 73 |
| |
|
+2-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 | 52 |
| |
54 | 53 |
| |
| 54 | + | |
55 | 55 |
| |
56 |
| - | |
57 | 56 |
| |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 | 36 |
| |
| 37 | + |
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
85 | 84 |
| |
86 | 85 |
| |
| 86 | + | |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
|
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
61 | 60 |
| |
62 | 61 |
| |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
|
+71
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 | + |
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
76 | 75 |
| |
77 | 76 |
| |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
|
+14
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + |
0 commit comments