File tree
317 files changed
+3368
-586
lines changed- problems
- account-balance
- accounts-merge
- all-the-pairs-with-the-maximum-number-of-common-followers
- basic-calculator
- binary-tree-maximum-path-sum
- building-boxes
- bulb-switcher-ii
- can-make-arithmetic-progression-from-sequence
- car-fleet-ii
- check-if-an-original-string-exists-given-two-encoded-strings
- check-if-number-is-a-sum-of-powers-of-three
- check-if-one-string-swap-can-make-strings-equal
- check-if-two-expression-trees-are-equivalent
- check-if-two-string-arrays-are-equivalent
- check-whether-two-strings-are-almost-equivalent
- checking-existence-of-edge-length-limited-paths-ii
- circle-and-rectangle-overlapping
- clone-graph
- closest-binary-search-tree-value
- closest-room
- closest-subsequence-sum
- coloring-a-border
- combine-two-tables
- confirmation-rate
- consecutive-characters
- construct-binary-tree-from-preorder-and-inorder-traversal
- construct-k-palindrome-strings
- container-with-most-water
- contains-duplicate-iii
- convert-a-number-to-hexadecimal
- convert-binary-search-tree-to-sorted-doubly-linked-list
- convert-bst-to-greater-tree
- correct-a-binary-tree
- count-good-meals
- count-nodes-with-the-highest-score
- count-number-of-homogenous-substrings
- count-number-of-teams
- count-of-smaller-numbers-after-self
- count-pairs-of-nodes
- count-subtrees-with-max-distance-between-cities
- count-vowel-substrings-of-a-string
- countries-you-can-safely-invest-in
- create-a-session-bar-chart
- customers-who-never-order
- decode-the-slanted-ciphertext
- decode-ways
- decompress-run-length-encoded-list
- delete-operation-for-two-strings
- design-front-middle-back-queue
- design-log-storage-system
- design-most-recently-used-queue
- design-skiplist
- design-snake-game
- design-underground-system
- detect-pattern-of-length-m-repeated-k-or-more-times
- distribute-repeating-integers
- divide-array-in-sets-of-k-consecutive-numbers
- divide-array-into-increasing-sequences
- duplicate-emails
- egg-drop-with-2-eggs-and-n-floors
- employees-earning-more-than-their-managers
- employees-with-missing-information
- encode-number
- exchange-seats
- falling-squares
- find-a-value-of-a-mysterious-function-closest-to-target
- find-all-groups-of-farmland
- find-customer-referee
- find-distance-in-a-binary-tree
- find-kth-bit-in-nth-binary-string
- find-minimum-time-to-finish-all-jobs
- find-the-distance-value-between-two-arrays
- find-the-minimum-and-maximum-number-of-nodes-between-critical-points
- find-the-missing-ids
- find-valid-matrix-given-row-and-column-sums
- first-unique-character-in-a-string
- first-unique-number
- fizz-buzz-multithreaded
- form-array-by-concatenating-subarrays-of-another-array
- furthest-building-you-can-reach
- gas-station
- get-maximum-in-generated-array
- graph-connectivity-with-threshold
- graph-valid-tree
- h-index
- hopper-company-queries-i
- how-many-apples-can-you-put-into-the-basket
- index-pairs-of-a-string
- integer-replacement
- investments-in-2016
- ip-to-cidr
- iterator-for-combination
- k-diff-pairs-in-an-array
- keys-and-rooms
- kill-process
- kth-ancestor-of-a-tree-node
- kth-distinct-string-in-an-array
- largest-merge-of-two-strings
- largest-subarray-length-k
- linked-list-components
- longest-duplicate-substring
- longest-increasing-path-in-a-matrix
- longest-increasing-subsequence
- longest-nice-substring
- longest-palindromic-subsequence
- longest-palindromic-substring
- longest-substring-with-at-least-k-repeating-characters
- lowest-common-ancestor-of-a-binary-tree-iii
- lowest-common-ancestor-of-a-binary-tree-iv
- lowest-common-ancestor-of-deepest-leaves
- magnetic-force-between-two-balls
- make-sum-divisible-by-p
- make-the-xor-of-all-segments-equal-to-zero
- map-of-highest-peak
- max-chunks-to-make-sorted-ii
- max-number-of-k-sum-pairs
- maximize-number-of-nice-divisors
- maximize-palindrome-length-from-subsequences
- maximize-the-beauty-of-the-garden
- maximum-absolute-sum-of-any-subarray
- maximum-average-pass-ratio
- maximum-average-subtree
- maximum-binary-string-after-change
- maximum-distance-between-a-pair-of-values
- maximum-equal-frequency
- maximum-nesting-depth-of-the-parentheses
- maximum-number-of-coins-you-can-get
- maximum-number-of-events-that-can-be-attended-ii
- maximum-number-of-tasks-you-can-assign
- maximum-of-minimum-values-in-all-subarrays
- maximum-path-quality-of-a-graph
- maximum-score-from-performing-multiplication-operations
- maximum-score-from-removing-stones
- maximum-score-from-removing-substrings
- maximum-score-of-a-good-subarray
- maximum-subarray-sum-after-one-operation
- maximum-sum-obtained-of-any-permutation
- maximum-xor-with-an-element-from-array
- merge-strings-alternately
- min-cost-to-connect-all-points
- minimize-deviation-in-array
- minimize-hamming-distance-after-swap-operations
- minimized-maximum-of-products-distributed-to-any-store
- minimum-absolute-sum-difference
- minimum-adjacent-swaps-for-k-consecutive-ones
- minimum-cost-to-connect-two-groups-of-points
- minimum-cost-to-separate-sentence-into-rows
- minimum-deletions-to-make-character-frequencies-unique
- minimum-deletions-to-make-string-balanced
- minimum-elements-to-add-to-form-a-given-sum
- minimum-falling-path-sum
- minimum-incompatibility
- minimum-initial-energy-to-finish-tasks
- minimum-jumps-to-reach-home
- minimum-limit-of-balls-in-a-bag
- minimum-number-of-frogs-croaking
- minimum-number-of-moves-to-seat-everyone
- minimum-number-of-operations-to-move-all-balls-to-each-box
- minimum-number-of-people-to-teach
- minimum-number-of-removals-to-make-mountain-array
- minimum-numbers-of-function-calls-to-make-target-array
- minimum-one-bit-operations-to-make-integers-zero
- minimum-operations-to-convert-number
- minimum-operations-to-make-a-subsequence
- minimum-operations-to-reduce-x-to-zero
- minimum-remove-to-make-valid-parentheses
- minimum-swaps-to-make-strings-equal
- missing-number
- most-beautiful-item-for-each-query
- movie-rating
- next-greater-numerically-balanced-number
- non-overlapping-intervals
- not-boring-movies
- nth-highest-salary
- number-of-equal-count-substrings
- number-of-good-ways-to-split-a-string
- number-of-restricted-paths-from-first-to-last-node
- number-of-spaces-cleaning-robot-cleaned
- number-of-students-unable-to-eat-lunch
- number-of-substrings-with-only-1s
- number-of-valid-move-combinations-on-chessboard
- number-of-valid-words-in-a-sentence
- number-of-ways-of-cutting-a-pizza
- number-of-ways-to-reorder-array-to-get-same-bst
- number-of-ways-to-split-a-string
- number-of-ways-to-wear-different-hats-to-each-other
- palindrome-partitioning-ii
- parallel-courses-iii
- path-sum-ii
- path-with-maximum-minimum-value
- path-with-maximum-probability
- path-with-minimum-effort
- percentage-of-users-attended-a-contest
- plates-between-candles
- power-of-two
- powx-n
- predict-the-winner
- print-immutable-linked-list-in-reverse
- process-restricted-friend-requests
- product-sales-analysis-ii
- product-sales-analysis-iii
- put-boxes-into-the-warehouse-i
- random-pick-index
- rank-scores
- rearrange-products-table
- rearrange-spaces-between-words
- reconstruct-a-2-row-binary-matrix
- recover-a-tree-from-preorder-traversal
- rectangle-area
- reformat-department-table
- remove-all-adjacent-duplicates-in-string-ii
- remove-duplicate-letters
- remove-zero-sum-consecutive-nodes-from-linked-list
- reorganize-string
- reshape-the-matrix
- restore-ip-addresses
- reverse-bits
- reverse-integer
- reverse-nodes-in-even-length-groups
- second-minimum-time-to-reach-destination
- sell-diminishing-valued-colored-balls
- sentence-screen-fitting
- sequence-reconstruction
- shopping-offers
- short-encoding-of-words
- single-number
- single-number-ii
- smallest-index-with-equal-value
- sort-features-by-popularity
- sort-linked-list-already-sorted-using-absolute-values
- spiral-matrix
- split-two-strings-to-make-palindrome
- stone-game-iv
- stone-game-vi
- stone-game-vii
- string-to-integer-atoi
- strings-differ-by-one-character
- strobogrammatic-number-ii
- strong-friendship
- sum-of-all-subset-xor-totals
- the-category-of-each-member-in-the-store
- the-most-frequently-ordered-products-for-each-customer
- the-winner-university
- throne-inheritance
- time-based-key-value-store
- time-needed-to-buy-tickets
- triples-with-bitwise-and-equal-to-zero
- trips-and-users
- two-best-non-overlapping-events
- two-city-scheduling
- ugly-number-ii
- unique-binary-search-trees
- unique-binary-search-trees-ii
- utf-8-validation
- vowels-of-all-substrings
- walking-robot-simulation-ii
- web-crawler
- web-crawler-multithreaded
- where-will-the-ball-fall
- xor-operation-in-an-array
- zigzag-conversion
- readme
- tag
- array
- backtracking
- binary-search
- binary-tree
- bit-manipulation
- breadth-first-search
- combinatorics
- counting
- depth-first-search
- design
- dynamic-programming
- enumeration
- eulerian-circuit
- graph
- greedy
- hash-table
- heap-priority-queue
- linked-list
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
317 files changed
+3368
-586
lines changedDiff for: README.md
+32-1
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 | + | |
81 | 112 |
| |
82 | 113 |
| |
83 | 114 |
| |
| |||
158 | 189 |
| |
159 | 190 |
| |
160 | 191 |
| |
161 |
| - | |
| 192 | + | |
162 | 193 |
| |
163 | 194 |
| |
164 | 195 |
| |
|
Diff for: problems/account-balance/README.md
+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 | + |
+7
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + |
Diff for: problems/accounts-merge/README.md
+2-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
| 27 | + | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + |
Diff for: problems/basic-calculator/README.md
+5-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
| 47 | + | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
55 |
| - | |
56 | 54 |
| |
57 | 55 |
| |
| 56 | + | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 |
| - |
+3-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 |
| - | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| 56 | + |
Diff for: problems/building-boxes/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
65 | 64 |
| |
66 | 65 |
| |
| 66 | + | |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
|
Diff for: problems/bulb-switcher-ii/README.md
+34-6
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 |
| |
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
39 | 41 |
| |
40 | 42 |
| |
41 |
| - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 |
| |
43 | 48 |
| |
44 | 49 |
| |
45 | 50 |
| |
46 | 51 |
| |
47 | 52 |
| |
48 | 53 |
| |
49 |
| - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
50 | 77 |
| |
51 | 78 |
| |
52 | 79 |
| |
| |||
58 | 85 |
| |
59 | 86 |
| |
60 | 87 |
| |
| 88 | + | |
61 | 89 |
| |
62 | 90 |
| |
63 | 91 |
| |
64 |
| - | |
65 | 92 |
| |
66 | 93 |
| |
67 | 94 |
| |
| 95 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 | 47 |
| |
51 | 48 |
| |
52 | 49 |
| |
|
0 commit comments