File tree
783 files changed
+10343
-5686
lines changed- problems
- 01-matrix
- a-number-after-a-double-reversal
- abbreviating-the-product-of-a-range
- accepted-candidates-from-the-interviews
- account-balance
- active-users
- add-minimum-number-of-rungs
- add-two-numbers
- adding-spaces-to-a-string
- ads-performance
- alert-using-same-key-card-three-or-more-times-in-a-one-hour-period
- all-divisions-with-the-highest-score-of-a-binary-array
- all-elements-in-two-binary-search-trees
- all-oone-data-structure
- all-possible-full-binary-trees
- allocate-mailboxes
- amount-of-new-area-painted-each-day
- android-unlock-patterns
- apples-oranges
- arithmetic-subarrays
- armstrong-number
- available-captures-for-rook
- average-salary-excluding-the-minimum-and-maximum-salary
- average-waiting-time
- avoid-flood-in-the-city
- backspace-string-compare
- bag-of-tokens
- battleships-in-a-board
- beautiful-arrangement
- best-position-for-a-service-centre
- best-time-to-buy-and-sell-stock-iii
- best-time-to-buy-and-sell-stock-with-transaction-fee
- binary-number-with-alternating-bits
- binary-searchable-numbers-in-an-unsorted-array
- binary-string-with-substrings-representing-1-to-n
- binary-subarrays-with-sum
- binary-tree-level-order-traversal
- binary-tree-right-side-view
- binary-tree-upside-down
- binary-tree-vertical-order-traversal
- break-a-palindrome
- brightest-position-on-street
- build-an-array-with-stack-operations
- build-binary-expression-tree-from-infix-expression
- build-the-equation
- burst-balloons
- calculate-salaries
- campus-bikes
- can-make-arithmetic-progression-from-sequence
- can-make-palindrome-from-substring
- capacity-to-ship-packages-within-d-days
- capital-gainloss
- capitalize-the-title
- car-fleet-ii
- car-pooling
- cat-and-mouse-ii
- cheapest-flights-within-k-stops
- check-array-formation-through-concatenation
- check-if-a-parentheses-string-can-be-valid
- check-if-a-string-contains-all-binary-codes-of-size-k
- check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
- check-if-all-as-appears-before-all-bs
- check-if-all-characters-have-equal-number-of-occurrences
- check-if-an-original-string-exists-given-two-encoded-strings
- check-if-array-is-sorted-and-rotated
- check-if-array-pairs-are-divisible-by-k
- check-if-binary-string-has-at-most-one-segment-of-ones
- check-if-every-row-and-column-contains-all-numbers
- check-if-n-and-its-double-exist
- check-if-numbers-are-ascending-in-a-sentence
- check-if-one-string-swap-can-make-strings-equal
- check-if-string-is-transformable-with-substring-sort-operations
- checking-existence-of-edge-length-limited-paths
- cherry-pickup
- cherry-pickup-ii
- choose-numbers-from-two-arrays-in-range
- cinema-seat-allocation
- circle-and-rectangle-overlapping
- clone-binary-tree-with-random-pointer
- clone-n-ary-tree
- closest-binary-search-tree-value
- closest-dessert-cost
- combination-sum
- combination-sum-ii
- complement-of-base-10-integer
- concatenation-of-consecutive-binary-numbers
- consecutive-characters
- construct-binary-tree-from-inorder-and-postorder-traversal
- construct-binary-tree-from-preorder-and-postorder-traversal
- construct-binary-tree-from-string
- container-with-most-water
- contiguous-array
- continuous-subarray-sum
- convert-1d-array-into-2d-array
- convert-bst-to-greater-tree
- convert-integer-to-the-sum-of-two-no-zero-integers
- convert-sorted-array-to-binary-search-tree
- convert-sorted-list-to-binary-search-tree
- coordinate-with-maximum-network-quality
- corporate-flight-bookings
- count-all-possible-routes
- count-all-valid-pickup-and-delivery-options
- count-binary-substrings
- count-common-words-with-one-occurrence
- count-different-palindromic-subsequences
- count-elements-with-strictly-smaller-and-greater-elements
- count-fertile-pyramids-in-a-land
- count-good-meals
- count-good-nodes-in-binary-tree
- count-good-triplets
- count-largest-group
- count-negative-numbers-in-a-sorted-matrix
- count-nice-pairs-in-an-array
- count-nodes-equal-to-sum-of-descendants
- count-number-of-pairs-with-absolute-difference-k
- count-number-of-teams
- count-of-smaller-numbers-after-self
- count-operations-to-obtain-zero
- count-pairs-in-two-arrays
- count-pairs-with-xor-in-a-range
- count-servers-that-communicate
- count-student-number-in-departments
- count-sub-islands
- count-subarrays-with-more-ones-than-zeros
- count-substrings-that-differ-by-one-character
- count-subtrees-with-max-distance-between-cities
- count-the-number-of-consistent-strings
- count-the-number-of-experiments
- count-triplets-that-can-form-two-arrays-of-equal-xor
- count-vowel-substrings-of-a-string
- count-words-obtained-after-adding-a-letter
- counting-bits
- countries-you-can-safely-invest-in
- create-a-session-bar-chart
- create-target-array-in-the-given-order
- decode-the-slanted-ciphertext
- decode-ways-ii
- decode-xored-permutation
- decrypt-string-from-alphabet-to-integer-mapping
- deepest-leaves-sum
- degree-of-an-array
- delete-duplicate-emails
- delete-duplicate-folders-in-system
- delete-leaves-with-a-given-value
- delete-n-nodes-after-m-nodes-of-a-linked-list
- delete-the-middle-node-of-a-linked-list
- delivering-boxes-from-storage-to-ports
- depth-of-bst-given-insertion-order
- describe-the-painting
- design-a-file-sharing-system
- design-bitset
- design-excel-sum-formula
- design-file-system
- design-hashmap
- design-log-storage-system
- design-movie-rental-system
- design-parking-system
- design-skiplist
- design-snake-game
- design-underground-system
- destroying-asteroids
- detect-pattern-of-length-m-repeated-k-or-more-times
- determine-if-string-halves-are-alike
- determine-if-two-strings-are-close
- determine-whether-matrix-can-be-obtained-by-rotation
- detonate-the-maximum-bombs
- diagonal-traverse-ii
- diameter-of-binary-tree
- distant-barcodes
- distinct-echo-substrings
- distribute-coins-in-binary-tree
- distribute-repeating-integers
- divide-a-string-into-groups-of-size-k
- dot-product-of-two-sparse-vectors
- drop-type-1-orders-for-customers-with-type-0-orders
- earliest-possible-day-of-full-bloom
- egg-drop-with-2-eggs-and-n-floors
- elements-in-array-after-removing-and-replacing-elements
- eliminate-maximum-number-of-monsters
- elimination-game
- employees-whose-manager-left-the-company
- encode-and-decode-strings
- encode-and-decode-tinyurl
- encode-n-ary-tree-to-binary-tree
- equal-rational-numbers
- erect-the-fence-ii
- escape-a-large-maze
- evaluate-reverse-polish-notation
- evaluate-the-bracket-pairs-of-a-string
- even-odd-tree
- excel-sheet-column-number
- execution-of-all-suffix-instructions-staying-in-a-grid
- fair-candy-swap
- filling-bookcase-shelves
- final-prices-with-a-special-discount-in-a-shop
- find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
- find-a-peak-element-ii
- find-a-value-of-a-mysterious-function-closest-to-target
- find-all-duplicates-in-an-array
- find-all-lonely-numbers-in-the-array
- find-all-people-with-secret
- find-all-possible-recipes-from-given-supplies
- find-all-the-lonely-nodes
- find-and-replace-in-string
- find-and-replace-pattern
- find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
- find-cutoff-score-for-each-school
- find-duplicate-subtrees
- find-first-and-last-position-of-element-in-sorted-array
- find-first-palindromic-string-in-the-array
- find-good-days-to-rob-the-bank
- find-if-path-exists-in-graph
- find-k-closest-elements
- find-k-length-substrings-with-no-repeated-characters
- find-kth-bit-in-nth-binary-string
- find-kth-largest-xor-coordinate-value
- find-latest-group-of-size-m
- find-longest-awesome-substring
- find-lucky-integer-in-an-array
- find-minimum-in-rotated-sorted-array-ii
- find-missing-observations
- find-nearest-point-that-has-the-same-x-or-y-coordinate
- find-numbers-with-even-number-of-digits
- find-root-of-n-ary-tree
- find-servers-that-handled-most-number-of-requests
- find-subsequence-of-length-k-with-the-largest-sum
- find-substring-with-given-hash-value
- find-target-indices-after-sorting-array
- find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
- find-the-index-of-the-large-integer
- find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
- find-the-middle-index-in-array
- find-the-minimum-and-maximum-number-of-nodes-between-critical-points
- find-the-missing-ids
- find-the-most-competitive-subsequence
- find-the-smallest-divisor-given-a-threshold
- find-the-winner-of-an-array-game
- find-the-winner-of-the-circular-game
- find-two-non-overlapping-sub-arrays-each-with-target-sum
- find-valid-matrix-given-row-and-column-sums
- find-winner-on-a-tic-tac-toe-game
- finding-3-digit-even-numbers
- finding-mk-average
- finding-pairs-with-a-certain-sum
- first-and-last-call-on-the-same-day
- first-unique-character-in-a-string
- fizz-buzz-multithreaded
- flatten-binary-tree-to-linked-list
- flip-game-ii
- flip-string-to-monotone-increasing
- form-largest-integer-with-digits-that-add-up-to-target
- four-divisors
- frog-position-after-t-seconds
- fruit-into-baskets
- game-play-analysis-i
- get-the-maximum-score
- get-the-second-most-recent-activity
- group-employees-of-the-same-salary
- group-sold-products-by-the-date
- groups-of-strings
- guess-number-higher-or-lower
- guess-the-word
- hexspeak
- hopper-company-queries-i
- hopper-company-queries-iii
- house-robber
- house-robber-iii
- how-many-numbers-are-smaller-than-the-current-number
- html-entity-parser
- image-overlap
- immediate-food-delivery-i
- immediate-food-delivery-ii
- implement-rand10-using-rand7
- implement-strstr
- increasing-decreasing-string
- integer-replacement
- integer-to-english-words
- intervals-between-identical-elements
- is-graph-bipartite
- jump-game-iii
- jump-game-v
- jump-game-vi
- k-highest-ranked-items-within-a-price-range
- k-radius-subarray-averages
- k-th-smallest-in-lexicographical-order
- keep-multiplying-found-values-by-two
- kill-process
- koko-eating-bananas
- kth-largest-element-in-a-stream
- largest-1-bordered-square
- largest-magic-square
- largest-multiple-of-three
- largest-number
- largest-odd-number-in-string
- largest-perimeter-triangle
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
783 files changed
+10343
-5686
lines changedDiff for: README.md
+169-372
Large diffs are not rendered by default.
Diff for: problems/01-matrix/README.md
+3-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
+61
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 | + |
+103
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 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
|
Diff for: problems/account-balance/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
|
Diff for: problems/active-users/README.md
+3-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
+4-9
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 | 52 |
| |
62 | 53 |
| |
63 | 54 |
| |
| |||
68 | 59 |
| |
69 | 60 |
| |
70 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
71 | 66 |
| |
72 | 67 |
| |
73 | 68 |
| |
|
Diff for: problems/add-two-numbers/README.md
+3-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
+82
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 | + |
Diff for: problems/ads-performance/README.md
+3-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 | 41 |
| |
56 | 42 |
| |
57 | 43 |
| |
58 | 44 |
| |
59 | 45 |
| |
60 | 46 |
| |
61 |
| - | |
| 47 | + | |
62 | 48 |
| |
63 | 49 |
| |
64 | 50 |
| |
|
0 commit comments