File tree
117 files changed
+2838
-1575
lines changed- problems
- accounts-merge
- add-digits
- add-one-row-to-tree
- best-time-to-buy-and-sell-stock-with-transaction-fee
- binary-tree-paths
- binary-trees-with-factors
- cells-with-odd-values-in-a-matrix
- check-if-a-string-contains-all-binary-codes-of-size-k
- check-if-one-string-swap-can-make-strings-equal
- coin-change
- combination-sum-iv
- construct-binary-tree-from-inorder-and-postorder-traversal
- count-pairs-of-equal-substrings-with-minimum-difference
- count-pairs-with-xor-in-a-range
- create-maximum-number
- design-authentication-manager
- different-ways-to-add-parentheses
- dungeon-game
- expression-add-operators
- find-center-of-star-graph
- find-median-from-data-stream
- find-mode-in-binary-search-tree
- generate-random-point-in-a-circle
- h-index-ii
- house-robber-ii
- implement-stack-using-queues
- insert-delete-getrandom-o1
- insert-delete-getrandom-o1-duplicates-allowed
- integer-break
- intersection-of-two-arrays
- intersection-of-two-arrays-ii
- intersection-of-two-linked-lists
- invert-binary-tree
- k-similar-strings
- linked-list-random-node
- longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
- max-sum-of-rectangle-no-larger-than-k
- maximize-score-after-n-operations
- maximize-the-beauty-of-the-garden
- maximum-ascending-subarray-sum
- maximum-average-pass-ratio
- maximum-number-of-consecutive-values-you-can-make
- maximum-product-of-word-lengths
- maximum-score-of-a-good-subarray
- maximum-value-at-a-given-index-in-a-bounded-array
- min-stack
- n-ary-tree-postorder-traversal
- n-ary-tree-preorder-traversal
- nth-digit
- number-of-orders-in-the-backlog
- paint-house-iii
- patching-array
- primary-department-for-each-employee
- product-of-array-except-self
- pyramid-transition-matrix
- range-sum-query-2d-immutable
- range-sum-query-immutable
- range-sum-query-mutable
- rearrange-products-table
- reconstruct-itinerary
- rectangle-area
- rectangles-area
- remove-duplicates-from-sorted-array
- remove-invalid-parentheses
- remove-palindromic-subsequences
- reverse-string
- second-largest-digit-in-a-string
- self-crossing
- shortest-palindrome
- smallest-sufficient-team
- sort-transformed-array
- statistics-from-a-large-sample
- student-attendance-record-i
- student-attendance-record-ii
- super-egg-drop
- swap-salary
- top-k-frequent-elements
- valid-anagram
- verify-preorder-serialization-of-a-binary-tree
- wiggle-subsequence
- word-ladder
- word-ladder-ii
- x-of-a-kind-in-a-deck-of-cards
- readme
- tag
- array
- backtracking
- binary-search
- design
- dynamic-programming
- geometry
- graph
- greedy
- hash-table
- heap
- line-sweep
- math
- ordered-map
- queue
- recursion
- rejection-sampling
- sort
- stack
- string
- topological-sort
- trie
- two-pointers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
117 files changed
+2838
-1575
lines changedDiff for: README.md
+29-306
Large diffs are not rendered by default.
Diff for: go.mod
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + |
Diff for: problems/accounts-merge/README.md
+30-18
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 |
| |
28 |
| - | |
29 |
| - | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 |
| - | |
32 | 32 |
| |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
38 | 50 |
| |
39 | 51 |
| |
40 | 52 |
| |
|
Diff for: problems/add-digits/README.md
+25-8
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 |
| |
24 | 27 |
| |
25 |
| - | |
26 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
27 | 44 |
| |
28 | 45 |
| |
29 | 46 |
| |
|
Diff for: problems/add-one-row-to-tree/README.md
+29-53
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
| 18 | + | |
31 | 19 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
40 | 26 |
| |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
41 | 33 |
| |
42 |
| - | |
43 |
| - | |
44 | 34 |
| |
45 |
| - | |
| 35 | + | |
| 36 | + | |
46 | 37 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
| 38 | + | |
| 39 | + | |
67 | 40 |
| |
68 |
| - | |
69 | 41 |
| |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
76 | 52 |
| |
77 | 53 |
| |
78 | 54 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
|
Diff for: problems/binary-tree-paths/README.md
+20-13
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 16 | + | |
19 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
20 | 21 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
28 | 25 |
| |
29 |
| - | |
| 26 | + | |
30 | 27 |
| |
31 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
32 | 31 |
| |
33 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 |
| |
35 | 42 |
| |
36 | 43 |
| |
|
+1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
41 | 42 |
|
+19-10
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 |
| |
18 | 25 |
| |
19 | 26 |
| |
20 | 27 |
| |
21 | 28 |
| |
22 |
| - | |
| 29 | + | |
23 | 30 |
| |
24 | 31 |
| |
25 | 32 |
| |
26 |
| - | |
| 33 | + | |
27 | 34 |
| |
28 | 35 |
| |
29 | 36 |
| |
30 | 37 |
| |
31 | 38 |
| |
32 |
| - | |
| 39 | + | |
33 | 40 |
| |
34 |
| - | |
| 41 | + | |
35 | 42 |
| |
36 | 43 |
| |
37 | 44 |
| |
38 | 45 |
| |
39 | 46 |
| |
40 | 47 |
| |
41 |
| - | |
42 |
| - | |
| 48 | + | |
43 | 49 |
| |
44 |
| - | |
45 |
| - | |
| 50 | + | |
| 51 | + | |
46 | 52 |
| |
47 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
48 | 57 |
| |
49 | 58 |
| |
50 | 59 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
| 61 | + | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
|
0 commit comments