File tree
516 files changed
+16976
-1914
lines changed- problems
- 3sum-smaller
- 4-keys-keyboard
- active-businesses
- activity-participants
- actors-and-directors-who-cooperated-at-least-three-times
- add-bold-tag-in-string
- add-minimum-number-of-rungs
- ads-performance
- advantage-shuffle
- alien-dictionary
- all-nodes-distance-k-in-binary-tree
- all-paths-from-source-lead-to-destination
- all-paths-from-source-to-target
- all-people-report-to-the-given-manager
- all-the-pairs-with-the-maximum-number-of-common-followers
- analyze-user-website-visit-pattern
- android-unlock-patterns
- armstrong-number
- array-transformation
- article-views-i
- article-views-ii
- average-salary-departments-vs-company
- average-selling-price
- basic-calculator
- basic-calculator-iii
- beautiful-array
- before-and-after-puzzle
- best-meeting-point
- biggest-single-number
- binary-tree-longest-consecutive-sequence
- binary-tree-longest-consecutive-sequence-ii
- binary-tree-upside-down
- binary-tree-vertical-order-traversal
- bold-words-in-string
- bomb-enemy
- boundary-of-binary-tree
- brace-expansion
- broken-calculator
- build-an-array-with-stack-operations
- burst-balloons
- campus-bikes
- campus-bikes-ii
- candy-crush
- capital-gainloss
- car-fleet
- card-flipping-game
- chalkboard-xor-game
- check-if-a-number-is-majority-element-in-a-sorted-array
- check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
- check-if-all-characters-have-equal-number-of-occurrences
- check-if-string-is-decomposable-into-value-equal-substrings
- closest-binary-search-tree-value
- closest-binary-search-tree-value-ii
- closest-leaf-in-a-binary-tree
- coin-path
- concatenation-of-array
- confirmation-rate
- confusing-number
- confusing-number-ii
- connecting-cities-with-minimum-cost
- consecutive-available-seats
- consecutive-numbers-sum
- construct-binary-tree-from-preorder-and-postorder-traversal
- construct-binary-tree-from-string
- convert-binary-search-tree-to-sorted-doubly-linked-list
- convex-polygon
- count-number-of-special-subsequences
- count-square-sum-triples
- count-student-number-in-departments
- count-substrings-with-only-one-distinct-letter
- count-univalue-subtrees
- course-schedule-iv
- cousins-in-binary-tree
- custom-sort-string
- customer-placing-the-largest-number-of-orders
- customers-who-bought-all-products
- customers-who-bought-products-a-and-b-but-not-c
- decode-ways-ii
- decoded-string-at-index
- delete-duplicate-folders-in-system
- delete-tree-nodes
- describe-the-painting
- design-a-leaderboard
- design-bounded-blocking-queue
- design-circular-deque
- design-compressed-string-iterator
- design-excel-sum-formula
- design-file-system
- design-hit-counter
- design-in-memory-file-system
- design-log-storage-system
- design-phone-directory
- design-search-autocomplete-system
- design-snake-game
- design-tic-tac-toe
- diameter-of-binary-tree
- diet-plan-performance
- digit-count-in-range
- distinct-subsequences-ii
- divide-array-in-sets-of-k-consecutive-numbers
- divide-array-into-increasing-sequences
- divide-chocolate
- domino-and-tromino-tiling
- eliminate-maximum-number-of-monsters
- employee-bonus
- employee-free-time
- encode-and-decode-strings
- encode-n-ary-tree-to-binary-tree
- encode-number
- encode-string-with-shortest-length
- equal-tree-partition
- erect-the-fence-ii
- exam-room
- excel-sheet-column-number
- expressive-words
- factor-combinations
- fair-candy-swap
- find-anagram-mappings
- find-cumulative-salary-of-an-employee
- find-customer-referee
- find-k-length-substrings-with-no-repeated-characters
- find-k-pairs-with-smallest-sums
- find-leaves-of-binary-tree
- find-median-given-frequency-of-numbers
- find-permutation
- find-smallest-common-element-in-all-rows
- find-the-celebrity
- find-the-derangement-of-an-array
- find-the-start-and-end-number-of-continuous-ranges
- find-the-team-size
- find-the-town-judge
- first-missing-positive
- fixed-point
- flatten-2d-vector
- flip-game
- flip-game-ii
- flip-string-to-monotone-increasing
- friend-requests-i-overall-acceptance-rate
- friend-requests-ii-who-has-the-most-friends
- friends-of-appropriate-ages
- frog-jump
- game-play-analysis-i
- game-play-analysis-ii
- game-play-analysis-iii
- game-play-analysis-iv
- game-play-analysis-v
- generalized-abbreviation
- get-highest-answer-rate-question
- get-the-second-most-recent-activity
- goat-latin
- graph-valid-tree
- group-shifted-strings
- groups-of-special-equivalent-strings
- hand-of-straights
- handshakes-that-dont-cross
- hexspeak
- high-five
- highest-grade-for-each-student
- how-many-apples-can-you-put-into-the-basket
- immediate-food-delivery-i
- immediate-food-delivery-ii
- index-pairs-of-a-string
- inorder-successor-in-bst
- inorder-successor-in-bst-ii
- insert-into-a-sorted-circular-linked-list
- intersection-of-three-sorted-arrays
- intersection-of-two-linked-lists
- investments-in-2016
- ip-to-cidr
- jump-game
- k-closest-points-to-origin
- k-empty-slots
- keys-and-rooms
- kids-with-the-greatest-number-of-candies
- kill-process
- kth-ancestor-of-a-tree-node
- largest-bst-subtree
- largest-component-size-by-common-factor
- largest-number-after-mutating-substring
- largest-sum-of-averages
- largest-triangle-area
- largest-unique-number
- league-statistics
- leetcodify-similar-friends
- lemonade-change
- lexicographically-smallest-equivalent-string
- line-reflection
- linked-list-components
- list-the-products-ordered-in-a-period
- logger-rate-limiter
- lonely-pixel-i
- lonely-pixel-ii
- longest-common-subsequence-between-sorted-arrays
- longest-line-of-consecutive-one-in-matrix
- longest-mountain-in-array
- longest-palindromic-substring
- longest-repeating-substring
- longest-substring-with-at-most-k-distinct-characters
- longest-substring-with-at-most-two-distinct-characters
- loud-and-rich
- managers-with-at-least-5-direct-reports
- market-analysis-i
- market-analysis-ii
- max-consecutive-ones-ii
- max-stack
- maximum-average-subarray-ii
- maximum-average-subtree
- maximum-compatibility-score-sum
- maximum-depth-of-n-ary-tree
- maximum-difference-between-node-and-ancestor
- maximum-distance-in-arrays
- maximum-genetic-difference-query
- maximum-number-of-ones
- maximum-number-of-points-with-cost
- maximum-number-of-weeks-for-which-you-can-work
- maximum-number-of-words-you-can-type
- maximum-of-minimum-values-in-all-subarrays
- maximum-product-of-splitted-binary-tree
- maximum-size-subarray-sum-equals-k
- maximum-subarray
- maximum-sum-bst-in-binary-tree
- maximum-vacation-days
- median-employee-salary
- meeting-rooms
- meeting-rooms-ii
- meeting-scheduler
- merge-bsts-to-create-single-bst
- middle-of-the-linked-list
- minimize-max-distance-to-gas-station
- minimize-rounding-error-to-meet-target
- minimum-add-to-make-parentheses-valid
- minimum-area-rectangle
- minimum-area-rectangle-ii
- minimum-cost-to-connect-sticks
- minimum-cost-to-hire-k-workers
- minimum-cost-to-reach-destination-in-time
- minimum-difficulty-of-a-job-schedule
- minimum-distance-to-type-a-word-using-two-fingers
- minimum-domino-rotations-for-equal-row
- minimum-factorization
- minimum-falling-path-sum
- minimum-garden-perimeter-to-collect-enough-apples
- minimum-increment-to-make-array-unique
- minimum-knight-moves
- minimum-number-of-operations-to-reinitialize-a-permutation
- minimum-swaps-to-group-all-1s-together
- minimum-time-to-build-blocks
- minimum-unique-word-abbreviation
- minimum-window-subsequence
- mirror-reflection
- missing-element-in-sorted-array
- missing-number-in-arithmetic-progression
- missing-ranges
- monotonic-array
- monthly-transactions-i
- monthly-transactions-ii
- most-profit-assigning-work
- movie-rating
- moving-average-from-data-stream
- n-repeated-element-in-size-2n-array
- nearest-exit-from-entrance-in-maze
- nested-list-weight-sum
- nested-list-weight-sum-ii
- new-users-daily-count
- next-closest-time
- non-overlapping-intervals
- number-of-comments-per-post
- number-of-connected-components-in-an-undirected-graph
- number-of-corner-rectangles
- number-of-days-in-a-month
- number-of-distinct-islands
- number-of-distinct-islands-ii
- number-of-islands-ii
- number-of-music-playlists
- number-of-ships-in-a-rectangle
- number-of-steps-to-reduce-a-number-in-binary-representation-to-one
- number-of-steps-to-reduce-a-number-to-zero
- number-of-transactions-per-visit
- number-of-trusted-contacts-of-a-customer
- number-of-valid-subarrays
- number-of-visible-people-in-a-queue
- one-edit-distance
- optimal-account-balancing
- optimize-water-distribution-in-a-village
- orderly-queue
- output-contest-matches
- page-recommendations
- paint-fence
- paint-house
- paint-house-ii
- painting-a-grid-with-three-different-colors
- palindrome-permutation
- palindrome-permutation-ii
- palindrome-removal
- parallel-courses
- partition-array-into-disjoint-intervals
- path-sum-iv
- path-with-maximum-minimum-value
- plus-one-linked-list
- possible-bipartition
- pour-water
- preimage-size-of-factorial-zeroes-function
- prime-palindrome
- print-immutable-linked-list-in-reverse
- product-of-the-last-k-numbers
- product-price-at-a-given-date
- product-sales-analysis-i
- product-sales-analysis-ii
- product-sales-analysis-iii
- project-employees-i
- project-employees-ii
- project-employees-iii
- push-dominoes
- queries-quality-and-percentage
- random-flip-matrix
- random-pick-with-blacklist
- random-point-in-non-overlapping-rectangles
- range-addition
- range-sum-query-2d-mutable
- rank-teams-by-votes
- reach-a-number
- read-n-characters-given-read4
- read-n-characters-given-read4-ii-call-multiple-times
- rearrange-string-k-distance-apart
- reduce-array-size-to-the-half
- regular-expression-matching
- remove-9
- remove-interval
- remove-vowels-from-a-string
- replace-employee-id-with-the-unique-identifier
- report-contiguous-dates
- reported-posts
- reported-posts-ii
- restaurant-growth
- restore-the-array
- reveal-cards-in-increasing-order
- reverse-words-in-a-string-ii
- robot-room-cleaner
- rotate-function
- rotate-string
- rotated-digits
- running-total-for-different-genders
- sales-analysis-i
- sales-analysis-ii
- sales-analysis-iii
- sales-person
- score-after-flipping-matrix
- score-of-parentheses
- search-in-a-sorted-array-of-unknown-size
- second-degree-follower
- sentence-screen-fitting
- sentence-similarity
- sentence-similarity-ii
- sequence-reconstruction
- serialize-and-deserialize-n-ary-tree
- set-matrix-zeroes
- shifting-letters
- shortest-distance-from-all-buildings
- shortest-distance-in-a-line
- shortest-distance-in-a-plane
- shortest-distance-to-target-color
- shortest-path-to-get-all-keys
- shortest-subarray-with-sum-at-least-k
- shortest-way-to-form-string
- shortest-word-distance
- shortest-word-distance-ii
- shortest-word-distance-iii
- similar-rgb-color
- single-row-keyboard
- smallest-common-region
- smallest-range-i
- smallest-range-ii
- smallest-rectangle-enclosing-black-pixels
- smallest-rotation-with-highest-score
- sort-array-by-parity
- sort-transformed-array
- soup-servings
- sparse-matrix-multiplication
- spiral-matrix-iii
- split-array-with-equal-sum
- split-bst
- split-concatenated-strings
- squirrel-simulation
- stamping-the-sequence
- stepping-numbers
- string-transforms-into-another-string
- strobogrammatic-number
- strobogrammatic-number-ii
- strobogrammatic-number-iii
- strong-friendship
- students-and-examinations
- students-report-by-geography
- students-with-invalid-departments
- subtree-of-another-tree
- sum-game
- sum-of-digits-in-the-minimum-number
- sum-of-digits-of-string-after-convert
- sum-of-distances-in-tree
- sum-of-subsequence-widths
- surrounded-regions
- synonymous-sentences
- team-scores-in-football-tournament
- ternary-expression-parser
- text-justification
- the-earliest-moment-when-everyone-become-friends
- the-maze
- the-maze-ii
- the-maze-iii
- the-number-of-the-smallest-unoccupied-chair
- three-divisors
- top-travellers
- toss-strange-coins
- total-hamming-distance
- total-sales-amount-by-year
- tournament-winners
- traffic-light-controlled-intersection
- tree-diameter
- tree-node
- triangle-judgement
- two-sum-bsts
- two-sum-iii-data-structure-design
- two-sum-less-than-k
- unique-length-3-palindromic-subsequences
- unique-morse-code-words
- unique-word-abbreviation
- unpopular-books
- user-activity-for-the-past-30-days-i
- user-activity-for-the-past-30-days-ii
- user-purchase-platform
- users-that-actively-request-confirmation-messages
- valid-palindrome-iii
- valid-permutations-for-di-sequence
- valid-word-abbreviation
- valid-word-square
- validate-stack-sequences
- verify-preorder-sequence-in-binary-search-tree
- walls-and-gates
- weather-type-in-each-country
- web-crawler
- web-crawler-multithreaded
- wiggle-sort
- winning-candidate
- word-abbreviation
- word-pattern-ii
- word-squares
- word-subsets
- zigzag-iterator
- readme
- tag
- array
- backtracking
- biconnected-component
- binary-search
- binary-tree
- bit-manipulation
- bitmask
- breadth-first-search
- bucket-sort
- combinatorics
- concurrency
- counting
- counting-sort
- data-stream
- depth-first-search
- divide-and-conquer
- doubly-linked-list
- dynamic-programming
- enumeration
- eulerian-circuit
- game-theory
- graph
- greedy
- hash-function
- hash-table
- heap-priority-queue
- interactive
- iterator
- line-sweep
- math
- matrix
- memoization
- merge-sort
- minimum-spanning-tree
- monotonic-queue
- monotonic-stack
- number-theory
- ordered-set
- prefix-sum
- probability-and-statistics
- quickselect
- radix-sort
- randomized
- rejection-sampling
- reservoir-sampling
- rolling-hash
- shortest-path
- simulation
- sliding-window
- sorting
- stack
- string
- string-matching
- strongly-connected-component
- suffix-array
- tree
- trie
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
516 files changed
+16976
-1914
lines changed+35-4
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 |
| |
84 | 115 |
| |
85 | 116 |
| |
86 |
| - | |
| 117 | + | |
87 | 118 |
| |
88 | 119 |
| |
89 | 120 |
| |
| |||
161 | 192 |
| |
162 | 193 |
| |
163 | 194 |
| |
164 |
| - | |
| 195 | + | |
165 | 196 |
| |
166 | 197 |
| |
167 | 198 |
| |
| |||
192 | 223 |
| |
193 | 224 |
| |
194 | 225 |
| |
195 |
| - | |
| 226 | + | |
196 | 227 |
| |
197 | 228 |
| |
198 | 229 |
| |
| |||
224 | 255 |
| |
225 | 256 |
| |
226 | 257 |
| |
227 |
| - | |
| 258 | + | |
228 | 259 |
| |
229 | 260 |
| |
230 | 261 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
15 | 27 |
| |
16 | 28 |
| |
17 | 29 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 |
| |
15 | 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 | + | |
16 | 50 |
| |
17 | 51 |
| |
18 | 52 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
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 | + | |
15 | 57 |
| |
16 | 58 |
| |
17 | 59 |
|
0 commit comments