File tree
1,787 files changed
+11988
-15819
lines changed- problems
- 01-matrix
- 132-pattern
- 2-keys-keyboard
- 24-game
- 3sum
- 3sum-closest
- 3sum-smaller
- 3sum-with-multiplicity
- 4-keys-keyboard
- 4sum
- 4sum-ii
- accounts-merge
- active-businesses
- active-users
- activity-participants
- actors-and-directors-who-cooperated-at-least-three-times
- ad-free-sessions
- add-binary
- add-bold-tag-in-string
- add-digits
- add-one-row-to-tree
- add-strings
- add-to-array-form-of-integer
- add-two-numbers-ii
- add-two-polynomials-represented-as-linked-lists
- adding-two-negabinary-numbers
- additive-number
- ads-performance
- advantage-shuffle
- airplane-seat-assignment-probability
- alert-using-same-key-card-three-or-more-times-in-a-one-hour-period
- alien-dictionary
- all-elements-in-two-binary-search-trees
- all-nodes-distance-k-in-binary-tree
- all-oone-data-structure
- all-paths-from-source-lead-to-destination
- all-paths-from-source-to-target
- all-people-report-to-the-given-manager
- all-possible-full-binary-trees
- all-valid-triplets-that-can-represent-a-country
- allocate-mailboxes
- ambiguous-coordinates
- analyze-user-website-visit-pattern
- android-unlock-patterns
- apples-oranges
- apply-discount-every-n-orders
- arithmetic-slices
- arithmetic-slices-ii-subsequence
- arithmetic-subarrays
- armstrong-number
- array-nesting
- array-of-doubled-pairs
- array-partition-i
- array-transformation
- article-views-i
- article-views-ii
- as-far-from-land-as-possible
- assign-cookies
- asteroid-collision
- available-captures-for-rook
- average-of-levels-in-binary-tree
- average-salary-departments-vs-company
- average-salary-excluding-the-minimum-and-maximum-salary
- average-selling-price
- average-time-of-process-per-machine
- average-waiting-time
- avoid-flood-in-the-city
- backspace-string-compare
- bag-of-tokens
- balance-a-binary-search-tree
- balanced-binary-tree
- bank-account-summary
- bank-account-summary-ii
- base-7
- baseball-game
- basic-calculator
- basic-calculator-ii
- basic-calculator-iii
- basic-calculator-iv
- battleships-in-a-board
- beautiful-arrangement
- beautiful-arrangement-ii
- beautiful-array
- before-and-after-puzzle
- best-meeting-point
- best-position-for-a-service-centre
- best-sightseeing-pair
- best-team-with-no-conflicts
- best-time-to-buy-and-sell-stock-ii
- best-time-to-buy-and-sell-stock-iv
- best-time-to-buy-and-sell-stock-with-cooldown
- big-countries
- biggest-single-number
- biggest-window-between-visits
- binary-gap
- binary-prefix-divisible-by-5
- binary-search
- binary-search-tree-iterator
- binary-search-tree-iterator-ii
- binary-search-tree-to-greater-sum-tree
- binary-subarrays-with-sum
- binary-tree-cameras
- binary-tree-coloring-game
- binary-tree-inorder-traversal
- binary-tree-level-order-traversal
- binary-tree-level-order-traversal-ii
- binary-tree-longest-consecutive-sequence
- binary-tree-longest-consecutive-sequence-ii
- binary-tree-maximum-path-sum
- binary-tree-paths
- binary-tree-postorder-traversal
- binary-tree-preorder-traversal
- binary-tree-pruning
- binary-tree-right-side-view
- binary-tree-tilt
- binary-tree-upside-down
- binary-tree-vertical-order-traversal
- binary-tree-zigzag-level-order-traversal
- binary-trees-with-factors
- bitwise-ors-of-subarrays
- boats-to-save-people
- bold-words-in-string
- bomb-enemy
- boundary-of-binary-tree
- brace-expansion
- brace-expansion-ii
- break-a-palindrome
- brick-wall
- bricks-falling-when-hit
- buddy-strings
- build-an-array-with-stack-operations
- build-array-from-permutation
- build-binary-expression-tree-from-infix-expression
- building-boxes
- building-h2o
- buildings-with-an-ocean-view
- bulb-switcher-ii
- bulb-switcher-iv
- bulls-and-cows
- bus-routes
- calculate-money-in-leetcode-bank
- calculate-salaries
- calculate-special-bonus
- camelcase-matching
- campus-bikes
- campus-bikes-ii
- can-convert-string-in-k-moves
- can-i-win
- can-make-arithmetic-progression-from-sequence
- can-make-palindrome-from-substring
- can-you-eat-your-favorite-candy-on-your-favorite-day
- candy
- candy-crush
- capacity-to-ship-packages-within-d-days
- capital-gainloss
- car-fleet
- car-fleet-ii
- car-pooling
- card-flipping-game
- cat-and-mouse
- cat-and-mouse-ii
- cells-with-odd-values-in-a-matrix
- chalkboard-xor-game
- change-minimum-characters-to-satisfy-one-of-three-conditions
- change-the-root-of-a-binary-tree
- cheapest-flights-within-k-stops
- check-array-formation-through-concatenation
- check-completeness-of-a-binary-tree
- check-if-a-number-is-majority-element-in-a-sorted-array
- check-if-a-string-can-break-another-string
- check-if-a-string-contains-all-binary-codes-of-size-k
- check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree
- check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
- check-if-all-the-integers-in-a-range-are-covered
- check-if-array-pairs-are-divisible-by-k
- check-if-binary-string-has-at-most-one-segment-of-ones
- check-if-it-is-a-good-array
- check-if-n-and-its-double-exist
- check-if-number-is-a-sum-of-powers-of-three
- check-if-one-string-swap-can-make-strings-equal
- check-if-string-is-transformable-with-substring-sort-operations
- check-if-the-sentence-is-pangram
- check-if-there-is-a-valid-path-in-a-grid
- check-if-two-expression-trees-are-equivalent
- check-if-two-string-arrays-are-equivalent
- checking-existence-of-edge-length-limited-paths
- checking-existence-of-edge-length-limited-paths-ii
- cherry-pickup
- cherry-pickup-ii
- cinema-seat-allocation
- circle-and-rectangle-overlapping
- circular-array-loop
- circular-permutation-in-binary-representation
- classes-more-than-5-students
- climbing-stairs
- clone-binary-tree-with-random-pointer
- clone-graph
- clone-n-ary-tree
- closest-binary-search-tree-value
- closest-binary-search-tree-value-ii
- closest-dessert-cost
- closest-leaf-in-a-binary-tree
- closest-room
- closest-subsequence-sum
- clumsy-factorial
- coin-change
- coin-change-2
- coin-path
- coloring-a-border
- combination-sum-iii
- combination-sum-iv
- combinations
- combine-two-tables
- compare-strings-by-frequency-of-the-smallest-character
- compare-version-numbers
- complement-of-base-10-integer
- complete-binary-tree-inserter
- complex-number-multiplication
- concatenated-words
- concatenation-of-consecutive-binary-numbers
- confusing-number
- confusing-number-ii
- connecting-cities-with-minimum-cost
- consecutive-available-seats
- consecutive-numbers
- consecutive-numbers-sum
- constrained-subsequence-sum
- construct-binary-search-tree-from-preorder-traversal
- construct-binary-tree-from-inorder-and-postorder-traversal
- construct-binary-tree-from-preorder-and-inorder-traversal
- construct-binary-tree-from-preorder-and-postorder-traversal
- construct-binary-tree-from-string
- construct-k-palindrome-strings
- construct-quad-tree
- construct-string-from-binary-tree
- construct-target-array-with-multiple-sums
- construct-the-lexicographically-largest-valid-sequence
- contain-virus
- container-with-most-water
- contains-duplicate
- contains-duplicate-ii
- contains-duplicate-iii
- contiguous-array
- continuous-subarray-sum
- convert-a-number-to-hexadecimal
- convert-binary-number-in-a-linked-list-to-integer
- convert-binary-search-tree-to-sorted-doubly-linked-list
- convert-bst-to-greater-tree
- convert-date-format
- convert-sorted-array-to-binary-search-tree
- convert-sorted-list-to-binary-search-tree
- convex-polygon
- coordinate-with-maximum-network-quality
- corporate-flight-bookings
- correct-a-binary-tree
- count-all-possible-routes
- count-all-valid-pickup-and-delivery-options
- count-apples-and-oranges
- count-binary-substrings
- count-complete-tree-nodes
- count-good-meals
- count-good-nodes-in-binary-tree
- count-good-numbers
- count-good-triplets
- count-largest-group
- count-negative-numbers-in-a-sorted-matrix
- count-nice-pairs-in-an-array
- count-number-of-homogenous-substrings
- count-number-of-nice-subarrays
- count-number-of-teams
- count-of-matches-in-tournament
- count-of-range-sum
- count-of-smaller-numbers-after-self
- count-pairs-in-two-arrays
- count-pairs-of-equal-substrings-with-minimum-difference
- count-pairs-of-nodes
- count-pairs-with-xor-in-a-range
- count-primes
- count-salary-categories
- count-servers-that-communicate
- count-sorted-vowel-strings
- count-square-submatrices-with-all-ones
- count-student-number-in-departments
- count-sub-islands
- count-submatrices-with-all-ones
- count-substrings-that-differ-by-one-character
- count-substrings-with-only-one-distinct-letter
- count-subtrees-with-max-distance-between-cities
- count-the-number-of-consistent-strings
- count-the-repetitions
- count-triplets-that-can-form-two-arrays-of-equal-xor
- count-unhappy-friends
- count-unique-characters-of-all-substrings-of-a-given-string
- count-univalue-subtrees
- count-ways-to-build-rooms-in-an-ant-colony
- count-ways-to-make-array-with-product
- counting-elements
- countries-you-can-safely-invest-in
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,787 files changed
+11988
-15819
lines changed+54-13
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 | 15 |
| |
28 | 16 |
| |
29 | 17 |
| |
30 | 18 |
| |
| 19 | + | |
| 20 | + | |
31 | 21 |
| |
32 | 22 |
| |
33 | 23 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
| 54 | + | |
53 | 55 |
| |
| 56 | + | |
| 57 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 | 14 |
| |
20 | 15 |
| |
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 | 16 |
| |
51 |
| - | |
52 | 17 |
| |
53 | 18 |
| |
54 | 19 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 |
| - | |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
51 | 50 |
| |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
| 53 | + | |
53 | 54 |
| |
| 55 | + | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 | 15 |
| |
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 |
| - | |
| 16 | + | |
| 17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 | 14 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 | 15 |
| |
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 |
| - | |
| 16 | + | |
| 17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 | 15 |
| |
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 |
| - | |
| 16 | + | |
| 17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
| 37 | + | |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 | 14 |
| |
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 | 15 |
| |
43 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
44 | 20 |
| |
| 21 | + | |
45 | 22 |
| |
46 | 23 |
| |
47 | 24 |
| |
|
0 commit comments