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
- couples-holding-hands
- course-schedule
- course-schedule-ii
- course-schedule-iii
- course-schedule-iv
- cousins-in-binary-tree
- cracking-the-safe
- crawler-log-folder
- create-a-session-bar-chart
- create-maximum-number
- create-sorted-array-through-instructions
- create-target-array-in-the-given-order
- critical-connections-in-a-network
- custom-sort-string
- customer-order-frequency
- customer-placing-the-largest-number-of-orders
- customer-who-visited-but-did-not-make-any-transactions
- customers-who-bought-all-products
- customers-who-bought-products-a-and-b-but-not-c
- customers-who-never-order
- cut-off-trees-for-golf-event
- cutting-ribbons
- cyclically-rotating-a-grid
- daily-leads-and-partners
- daily-temperatures
- data-stream-as-disjoint-intervals
- day-of-the-week
- day-of-the-year
- decode-string
- decode-ways-ii
- decode-xored-array
- decode-xored-permutation
- decoded-string-at-index
- decrease-elements-to-make-array-zigzag
- deepest-leaves-sum
- degree-of-an-array
- delete-and-earn
- delete-columns-to-make-sorted
- delete-columns-to-make-sorted-ii
- delete-columns-to-make-sorted-iii
- delete-duplicate-emails
- delete-leaves-with-a-given-value
- delete-n-nodes-after-m-nodes-of-a-linked-list
- delete-node-in-a-bst
- delete-nodes-and-return-forest
- delete-operation-for-two-strings
- delete-tree-nodes
- delivering-boxes-from-storage-to-ports
- department-highest-salary
- department-top-three-salaries
- depth-of-bst-given-insertion-order
- design-a-file-sharing-system
- design-a-leaderboard
- design-a-stack-with-increment-operation
- design-add-and-search-words-data-structure
- design-an-expression-tree-with-evaluate-function
- design-an-ordered-stream
- design-bounded-blocking-queue
- design-browser-history
- design-circular-deque
- design-circular-queue
- design-compressed-string-iterator
- design-excel-sum-formula
- design-file-system
- design-front-middle-back-queue
- design-hashmap
- design-hashset
- design-hit-counter
- design-in-memory-file-system
- design-log-storage-system
- design-most-recently-used-queue
- design-movie-rental-system
- design-parking-system
- design-phone-directory
- design-search-autocomplete-system
- design-skiplist
- design-snake-game
- design-tic-tac-toe
- design-twitter
- design-underground-system
- destination-city
- detect-cycles-in-2d-grid
- detect-pattern-of-length-m-repeated-k-or-more-times
- determine-color-of-a-chessboard-square
- determine-if-string-halves-are-alike
- determine-if-two-strings-are-close
- determine-whether-matrix-can-be-obtained-by-rotation
- di-string-match
- diagonal-traverse
- diagonal-traverse-ii
- diameter-of-binary-tree
- diameter-of-n-ary-tree
- dice-roll-simulation
- diet-plan-performance
- different-ways-to-add-parentheses
- digit-count-in-range
- dinner-plate-stacks
- display-table-of-food-orders-in-a-restaurant
- distant-barcodes
- distinct-echo-substrings
- distinct-numbers-in-each-subarray
- distinct-subsequences-ii
- distribute-candies
- distribute-candies-to-people
- distribute-coins-in-binary-tree
- distribute-repeating-integers
- divide-array-in-sets-of-k-consecutive-numbers
- divide-array-into-increasing-sequences
- divide-chocolate
- divide-two-integers
- divisor-game
- dot-product-of-two-sparse-vectors
- dota2-senate
- dungeon-game
- duplicate-emails
- duplicate-zeros
- egg-drop-with-2-eggs-and-n-floors
- eliminate-maximum-number-of-monsters
- elimination-game
- employee-bonus
- employee-free-time
- employee-importance
- employees-earning-more-than-their-managers
- encode-and-decode-strings
- encode-and-decode-tinyurl
- encode-n-ary-tree-to-binary-tree
- encode-number
- encode-string-with-shortest-length
- equal-rational-numbers
- equal-sum-arrays-with-minimum-number-of-operations
- equal-tree-partition
- erect-the-fence
- erect-the-fence-ii
- escape-a-large-maze
- escape-the-ghosts
- evaluate-boolean-expression
- evaluate-division
- evaluate-reverse-polish-notation
- evaluate-the-bracket-pairs-of-a-string
- even-odd-tree
- exam-room
- excel-sheet-column-number
- excel-sheet-column-title
- exchange-seats
- exclusive-time-of-functions
- expression-add-operators
- expressive-words
- factor-combinations
- fair-candy-swap
- falling-squares
- fancy-sequence
- faulty-sensor
- fibonacci-number
- filling-bookcase-shelves
- filter-restaurants-by-vegan-friendly-price-and-distance
- 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-anagrams-in-a-string
- find-all-duplicates-in-an-array
- find-all-good-strings
- find-all-numbers-disappeared-in-an-array
- find-all-the-lonely-nodes
- find-anagram-mappings
- find-and-replace-in-string
- find-and-replace-pattern
- find-bottom-left-tree-value
- find-center-of-star-graph
- find-common-characters
- find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
- find-cumulative-salary-of-an-employee
- find-customer-referee
- find-customers-with-positive-revenue-this-year
- find-distance-in-a-binary-tree
- find-duplicate-file-in-system
- find-duplicate-subtrees
- find-elements-in-a-contaminated-binary-tree
- find-eventual-safe-states
- find-followers-count
- find-in-mountain-array
- find-interview-candidates
- find-k-closest-elements
- find-k-length-substrings-with-no-repeated-characters
- find-k-pairs-with-smallest-sums
- find-k-th-smallest-pair-distance
- find-kth-bit-in-nth-binary-string
- find-kth-largest-xor-coordinate-value
- find-largest-value-in-each-tree-row
- find-latest-group-of-size-m
- find-leaves-of-binary-tree
- find-longest-awesome-substring
- find-lucky-integer-in-an-array
- find-median-from-data-stream
- find-median-given-frequency-of-numbers
- find-minimum-time-to-finish-all-jobs
- find-mode-in-binary-search-tree
- find-n-unique-integers-sum-up-to-zero
- find-nearest-right-node-in-binary-tree
- find-permutation
- find-pivot-index
- find-positive-integer-solution-for-a-given-equation
- find-right-interval
- find-root-of-n-ary-tree
- find-servers-that-handled-most-number-of-requests
- find-smallest-common-element-in-all-rows
- find-smallest-letter-greater-than-target
- find-the-celebrity
- find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
- find-the-closest-palindrome
- find-the-derangement-of-an-array
- find-the-difference
- find-the-distance-value-between-two-arrays
- find-the-duplicate-number
- find-the-highest-altitude
- find-the-index-of-the-large-integer
- find-the-kth-smallest-sum-of-a-matrix-with-sorted-rows
- find-the-longest-substring-containing-vowels-in-even-counts
- find-the-minimum-number-of-fibonacci-numbers-whose-sum-is-k
- find-the-missing-ids
- find-the-most-competitive-subsequence
- find-the-quiet-students-in-all-exams
- find-the-shortest-superstring
- find-the-smallest-divisor-given-a-threshold
- find-the-start-and-end-number-of-continuous-ranges
- find-the-student-that-will-replace-the-chalk
- find-the-subtasks-that-did-not-execute
- find-the-team-size
- find-the-town-judge
- find-the-winner-of-an-array-game
- find-the-winner-of-the-circular-game
- find-total-time-spent-by-each-employee
- find-two-non-overlapping-sub-arrays-each-with-target-sum
- find-users-with-valid-e-mails
- find-valid-matrix-given-row-and-column-sums
- find-winner-on-a-tic-tac-toe-game
- find-words-that-can-be-formed-by-characters
- find-xor-sum-of-all-pairs-bitwise-and
- finding-mk-average
- finding-pairs-with-a-certain-sum
- finding-the-users-active-minutes
- first-bad-version
- first-missing-positive
- first-unique-character-in-a-string
- first-unique-number
- fix-names-in-a-table
- fix-product-name-format
- fixed-point
- fizz-buzz
- fizz-buzz-multithreaded
- flatten-2d-vector
- flatten-a-multilevel-doubly-linked-list
- flatten-binary-tree-to-linked-list
- flatten-nested-list-iterator
- flip-binary-tree-to-match-preorder-traversal
- flip-columns-for-maximum-number-of-equal-rows
- flip-equivalent-binary-trees
- flip-game
- flip-game-ii
- flip-string-to-monotone-increasing
- flipping-an-image
- flood-fill
- flower-planting-with-no-adjacent
- form-array-by-concatenating-subarrays-of-another-array
- form-largest-integer-with-digits-that-add-up-to-target
- four-divisors
- fraction-addition-and-subtraction
- fraction-to-recurring-decimal
- freedom-trail
- frequency-of-the-most-frequent-element
- friend-requests-i-overall-acceptance-rate
- friend-requests-ii-who-has-the-most-friends
- friendly-movies-streamed-last-month
- friends-of-appropriate-ages
- frog-jump
- frog-position-after-t-seconds
- fruit-into-baskets
- furthest-building-you-can-reach
- game-of-life
- game-of-nim
- game-play-analysis-i
- game-play-analysis-ii
- game-play-analysis-iii
- game-play-analysis-iv
- game-play-analysis-v
- gas-station
- generalized-abbreviation
- generate-parentheses
- generate-random-point-in-a-circle
- get-biggest-three-rhombus-sums-in-a-grid
- get-equal-substrings-within-budget
- get-highest-answer-rate-question
- get-maximum-in-generated-array
- get-the-maximum-score
- get-the-second-most-recent-activity
- get-watched-videos-by-your-friends
- grand-slam-titles
- graph-connectivity-with-threshold
- graph-valid-tree
- gray-code
- greatest-common-divisor-of-strings
- greatest-sum-divisible-by-three
- grid-illumination
- group-anagrams
- group-employees-of-the-same-salary
- group-shifted-strings
- group-sold-products-by-the-date
- group-the-people-given-the-group-size-they-belong-to
- groups-of-special-equivalent-strings
- guess-number-higher-or-lower
- guess-number-higher-or-lower-ii
- guess-the-word
- h-index
- h-index-ii
- hand-of-straights
- handshakes-that-dont-cross
- happy-number
- heaters
- height-checker
- hexspeak
- high-five
- highest-grade-for-each-student
- hopper-company-queries-i
- hopper-company-queries-ii
- hopper-company-queries-iii
- house-robber
- house-robber-ii
- house-robber-iii
- how-many-apples-can-you-put-into-the-basket
- how-many-numbers-are-smaller-than-the-current-number
- html-entity-parser
- human-traffic-of-stadium
- image-overlap
- image-smoother
- immediate-food-delivery-i
- immediate-food-delivery-ii
- implement-magic-dictionary
- implement-queue-using-stacks
- implement-rand10-using-rand7
- implement-stack-using-queues
- implement-strstr
- implement-trie-ii-prefix-tree
- implement-trie-prefix-tree
- increasing-decreasing-string
- increasing-order-search-tree
- increasing-subsequences
- increasing-triplet-subsequence
- incremental-memory-leak
- index-pairs-of-a-string
- inorder-successor-in-bst
- inorder-successor-in-bst-ii
- insert-delete-getrandom-o1
- insert-delete-getrandom-o1-duplicates-allowed
- insert-interval
- insert-into-a-binary-search-tree
- insert-into-a-sorted-circular-linked-list
- insertion-sort-list
- insufficient-nodes-in-root-to-leaf-paths
- integer-replacement
- integer-to-english-words
- integer-to-roman
- intersection-of-three-sorted-arrays
- intersection-of-two-arrays
- intersection-of-two-arrays-ii
- intersection-of-two-linked-lists
- interval-list-intersections
- invalid-transactions
- invalid-tweets
- invert-binary-tree
- investments-in-2016
- ip-to-cidr
- ipo
- is-graph-bipartite
- is-subsequence
- island-perimeter
- isomorphic-strings
- iterator-for-combination
- jewels-and-stones
- jump-game
- jump-game-ii
- jump-game-iii
- jump-game-iv
- jump-game-v
- jump-game-vi
- jump-game-vii
- k-closest-points-to-origin
- k-concatenation-maximum-sum
- k-diff-pairs-in-an-array
- k-empty-slots
- k-similar-strings
- k-th-smallest-in-lexicographical-order
- k-th-smallest-prime-fraction
- k-th-symbol-in-grammar
- keyboard-row
- keys-and-rooms
- kill-process
- koko-eating-bananas
- kth-ancestor-of-a-tree-node
- kth-largest-element-in-a-stream
- kth-largest-element-in-an-array
- kth-missing-positive-number
- kth-smallest-element-in-a-bst
- kth-smallest-element-in-a-sorted-matrix
- kth-smallest-instructions
- kth-smallest-subarray-sum
- largest-1-bordered-square
- largest-bst-subtree
- largest-color-value-in-a-directed-graph
- largest-component-size-by-common-factor
- largest-divisible-subset
- largest-magic-square
- largest-merge-of-two-strings
- largest-multiple-of-three
- largest-number
- largest-number-at-least-twice-of-others
- largest-odd-number-in-string
- largest-palindrome-product
- largest-perimeter-triangle
- largest-plus-sign
- largest-rectangle-in-histogram
- largest-submatrix-with-rearrangements
- largest-substring-between-two-equal-characters
- largest-sum-of-averages
- largest-time-for-given-digits
- largest-triangle-area
- largest-unique-number
- largest-values-from-labels
- last-moment-before-all-ants-fall-out-of-a-plank
- last-person-to-fit-in-the-bus
- last-stone-weight
- last-stone-weight-ii
- last-substring-in-lexicographical-order
- leaf-similar-trees
- league-statistics
- least-number-of-unique-integers-after-k-removals
- leetcodify-friends-recommendations
- leetcodify-similar-friends
- leetflex-banned-accounts
- leftmost-column-with-at-least-a-one
- lemonade-change
- length-of-longest-fibonacci-subsequence
- letter-case-permutation
- letter-combinations-of-a-phone-number
- letter-tile-possibilities
- lexicographical-numbers
- lexicographically-smallest-equivalent-string
- lexicographically-smallest-string-after-applying-operations
- lfu-cache
- license-key-formatting
- line-reflection
- linked-list-components
- linked-list-cycle
- linked-list-cycle-ii
- linked-list-in-binary-tree
- linked-list-random-node
- list-the-products-ordered-in-a-period
- logger-rate-limiter
- logical-or-of-two-binary-grids-represented-as-quad-trees
- lonely-pixel-i
- lonely-pixel-ii
- longer-contiguous-segments-of-ones-than-zeros
- longest-absolute-file-path
- longest-arithmetic-subsequence
- longest-arithmetic-subsequence-of-given-difference
- longest-chunked-palindrome-decomposition
- longest-common-subpath
- longest-common-subsequence
- longest-consecutive-sequence
- longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
- longest-duplicate-substring
- longest-happy-prefix
- longest-happy-string
- longest-harmonious-subsequence
- longest-increasing-path-in-a-matrix
- longest-increasing-subsequence
- longest-line-of-consecutive-one-in-matrix
- longest-mountain-in-array
- longest-nice-substring
- longest-palindrome
- longest-palindromic-subsequence
- longest-repeating-character-replacement
- longest-repeating-substring
- longest-string-chain
- longest-subarray-of-1s-after-deleting-one-element
- longest-substring-of-all-vowels-in-order
- longest-substring-with-at-least-k-repeating-characters
- longest-substring-with-at-most-k-distinct-characters
- longest-substring-with-at-most-two-distinct-characters
- longest-substring-without-repeating-characters
- longest-uncommon-subsequence-i
- longest-uncommon-subsequence-ii
- longest-univalue-path
- longest-valid-parentheses
- longest-well-performing-interval
- longest-word-in-dictionary
- longest-word-in-dictionary-through-deleting
- longest-word-with-all-prefixes
- longest-zigzag-path-in-a-binary-tree
- loud-and-rich
- lowest-common-ancestor-of-a-binary-search-tree
- lowest-common-ancestor-of-a-binary-tree
- lowest-common-ancestor-of-a-binary-tree-ii
- lowest-common-ancestor-of-a-binary-tree-iii
- lowest-common-ancestor-of-a-binary-tree-iv
- lowest-common-ancestor-of-deepest-leaves
- lru-cache
- lucky-numbers-in-a-matrix
- magic-squares-in-grid
- magical-string
- magnetic-force-between-two-balls
- majority-element
- majority-element-ii
- make-array-strictly-increasing
- make-sum-divisible-by-p
- make-the-xor-of-all-segments-equal-to-zero
- make-two-arrays-equal-by-reversing-sub-arrays
- making-a-large-island
- making-file-names-unique
- managers-with-at-least-5-direct-reports
- map-of-highest-peak
- map-sum-pairs
- market-analysis-i
- market-analysis-ii
- matchsticks-to-square
- matrix-block-sum
- matrix-cells-in-distance-order
- matrix-diagonal-sum
- max-area-of-island
- max-chunks-to-make-sorted
- max-chunks-to-make-sorted-ii
- max-consecutive-ones-ii
- max-consecutive-ones-iii
- max-difference-you-can-get-from-changing-an-integer
- max-dot-product-of-two-subsequences
- max-increase-to-keep-city-skyline
- max-number-of-k-sum-pairs
- max-points-on-a-line
- max-stack
- max-sum-of-rectangle-no-larger-than-k
- max-value-of-equation
- maximal-rectangle
- maximal-square
- maximize-grid-happiness
- maximize-number-of-nice-divisors
- maximize-palindrome-length-from-subsequences
- maximize-score-after-n-operations
- maximize-sum-of-array-after-k-negations
- maximize-the-beauty-of-the-garden
- maximum-69-number
- maximum-absolute-sum-of-any-subarray
- maximum-alternating-subsequence-sum
- maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts
- maximum-ascending-subarray-sum
- maximum-average-pass-ratio
- maximum-average-subarray-i
- maximum-average-subarray-ii
- maximum-average-subtree
- maximum-binary-string-after-change
- maximum-binary-tree
- maximum-binary-tree-ii
- maximum-building-height
- maximum-candies-you-can-get-from-boxes
- maximum-depth-of-binary-tree
- maximum-depth-of-n-ary-tree
- maximum-difference-between-node-and-ancestor
- maximum-distance-between-a-pair-of-values
- maximum-distance-in-arrays
- maximum-element-after-decreasing-and-rearranging
- maximum-equal-frequency
- maximum-erasure-value
- maximum-font-to-fit-a-sentence-in-a-screen
- maximum-frequency-stack
- maximum-gap
- maximum-height-by-stacking-cuboids
- maximum-ice-cream-bars
- maximum-length-of-a-concatenated-string-with-unique-characters
- maximum-length-of-pair-chain
- maximum-length-of-repeated-subarray
- maximum-length-of-subarray-with-positive-product
- maximum-level-sum-of-a-binary-tree
- maximum-nesting-depth-of-the-parentheses
- maximum-nesting-depth-of-two-valid-parentheses-strings
- maximum-non-negative-product-in-a-matrix
- maximum-number-of-accepted-invitations
- maximum-number-of-achievable-transfer-requests
- maximum-number-of-balloons
- maximum-number-of-balls-in-a-box
- maximum-number-of-coins-you-can-get
- maximum-number-of-consecutive-values-you-can-make
- maximum-number-of-darts-inside-of-a-circular-dartboard
- maximum-number-of-eaten-apples
- maximum-number-of-events-that-can-be-attended
- maximum-number-of-events-that-can-be-attended-ii
- maximum-number-of-groups-getting-fresh-donuts
- maximum-number-of-non-overlapping-subarrays-with-sum-equals-target
- maximum-number-of-non-overlapping-substrings
- maximum-number-of-occurrences-of-a-substring
- maximum-number-of-ones
- maximum-number-of-removable-characters
- maximum-number-of-visible-points
- maximum-of-absolute-value-expression
- maximum-performance-of-a-team
- maximum-points-you-can-obtain-from-cards
- maximum-population-year
- maximum-product-difference-between-two-pairs
- maximum-product-of-splitted-binary-tree
- maximum-product-of-three-numbers
- maximum-product-of-two-elements-in-an-array
- maximum-product-of-word-lengths
- maximum-profit-in-job-scheduling
- maximum-profit-of-operating-a-centennial-wheel
- maximum-repeating-substring
- maximum-score-from-performing-multiplication-operations
- maximum-score-from-removing-stones
- maximum-score-from-removing-substrings
- maximum-score-of-a-good-subarray
- maximum-score-words-formed-by-letters
- maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
- maximum-size-subarray-sum-equals-k
- maximum-students-taking-exam
- maximum-subarray-min-product
- maximum-subarray-sum-after-one-operation
- maximum-subarray-sum-with-one-deletion
- maximum-sum-bst-in-binary-tree
- maximum-sum-circular-subarray
- maximum-sum-obtained-of-any-permutation
- maximum-sum-of-two-non-overlapping-subarrays
- maximum-swap
- maximum-transaction-each-day
- maximum-units-on-a-truck
- maximum-vacation-days
- maximum-value-after-insertion
- maximum-width-of-binary-tree
- maximum-width-ramp
- maximum-xor-for-each-query
- maximum-xor-of-two-numbers-in-an-array
- maximum-xor-with-an-element-from-array
- mean-of-array-after-removing-some-elements
- median-employee-salary
- meeting-rooms
- meeting-rooms-ii
- meeting-scheduler
- merge-intervals
- merge-k-sorted-lists
- merge-sorted-array
- merge-strings-alternately
- merge-triplets-to-form-target-triplet
- merge-two-binary-trees
- middle-of-the-linked-list
- min-cost-to-connect-all-points
- minesweeper
- mini-parser
- minimize-deviation-in-array
- minimize-hamming-distance-after-swap-operations
- minimize-malware-spread
- minimize-malware-spread-ii
- minimize-max-distance-to-gas-station
- minimize-maximum-pair-sum-in-array
- minimize-product-sum-of-two-arrays
- minimize-rounding-error-to-meet-target
- minimum-absolute-difference
- minimum-absolute-difference-in-bst
- minimum-absolute-difference-queries
- minimum-absolute-sum-difference
- minimum-add-to-make-parentheses-valid
- minimum-adjacent-swaps-for-k-consecutive-ones
- minimum-adjacent-swaps-to-reach-the-kth-smallest-number
- minimum-area-rectangle
- minimum-area-rectangle-ii
- minimum-ascii-delete-sum-for-two-strings
- minimum-changes-to-make-alternating-binary-string
- minimum-cost-for-tickets
- minimum-cost-to-change-the-final-value-of-expression
- minimum-cost-to-connect-sticks
- minimum-cost-to-connect-two-groups-of-points
- minimum-cost-to-cut-a-stick
- minimum-cost-to-hire-k-workers
- minimum-cost-to-make-at-least-one-valid-path-in-a-grid
- minimum-cost-to-merge-stones
- minimum-cost-tree-from-leaf-values
- minimum-deletion-cost-to-avoid-repeating-letters
- minimum-deletions-to-make-character-frequencies-unique
- minimum-deletions-to-make-string-balanced
- minimum-depth-of-binary-tree
- minimum-difference-between-largest-and-smallest-value-in-three-moves
- minimum-difficulty-of-a-job-schedule
- minimum-distance-between-bst-nodes
- minimum-distance-to-type-a-word-using-two-fingers
- minimum-elements-to-add-to-form-a-given-sum
- minimum-factorization
- minimum-falling-path-sum
- minimum-falling-path-sum-ii
- minimum-genetic-mutation
- minimum-height-trees
- minimum-incompatibility
- minimum-increment-to-make-array-unique
- minimum-index-sum-of-two-lists
- minimum-initial-energy-to-finish-tasks
- minimum-insertion-steps-to-make-a-string-palindrome
- minimum-insertions-to-balance-a-parentheses-string
- minimum-interval-to-include-each-query
- minimum-jumps-to-reach-home
- minimum-knight-moves
- minimum-length-of-string-after-deleting-similar-ends
- minimum-limit-of-balls-in-a-bag
- minimum-moves-to-equal-array-elements
- minimum-moves-to-equal-array-elements-ii
- minimum-moves-to-make-array-complementary
- minimum-moves-to-move-a-box-to-their-target-location
- minimum-moves-to-reach-target-with-rotations
- minimum-number-of-arrows-to-burst-balloons
- minimum-number-of-days-to-disconnect-island
- minimum-number-of-days-to-eat-n-oranges
- minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix
- minimum-number-of-flips-to-make-the-binary-string-alternating
- minimum-number-of-frogs-croaking
- minimum-number-of-increments-on-subarrays-to-form-a-target-array
- minimum-number-of-k-consecutive-bit-flips
- minimum-number-of-operations-to-make-string-sorted
- minimum-number-of-operations-to-move-all-balls-to-each-box
- minimum-number-of-refueling-stops
- minimum-number-of-removals-to-make-mountain-array
- minimum-number-of-steps-to-make-two-strings-anagram
- minimum-number-of-swaps-to-make-the-binary-string-alternating
- minimum-number-of-taps-to-open-to-water-a-garden
- minimum-numbers-of-function-calls-to-make-target-array
- minimum-one-bit-operations-to-make-integers-zero
- minimum-operations-to-make-a-subsequence
- minimum-operations-to-reduce-x-to-zero
- minimum-path-sum
- minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits
- minimum-score-triangulation-of-polygon
- minimum-sideway-jumps
- minimum-size-subarray-sum
- minimum-skips-to-arrive-at-meeting-on-time
- minimum-space-wasted-from-packaging
- minimum-speed-to-arrive-on-time
- minimum-subsequence-in-non-increasing-order
- minimum-swaps-to-arrange-a-binary-grid
- minimum-swaps-to-group-all-1s-together
- minimum-swaps-to-make-sequences-increasing
- minimum-swaps-to-make-strings-equal
- minimum-time-difference
- minimum-time-to-build-blocks
- minimum-time-to-collect-all-apples-in-a-tree
- minimum-time-visiting-all-points
- minimum-unique-word-abbreviation
- minimum-value-to-get-positive-step-by-step-sum
- minimum-window-subsequence
- minimum-window-substring
- minimum-xor-sum-of-two-arrays
- mirror-reflection
- missing-element-in-sorted-array
- missing-number
- missing-number-in-arithmetic-progression
- missing-ranges
- monotone-increasing-digits
- monthly-transactions-i
- monthly-transactions-ii
- most-common-word
- most-frequent-subtree-sum
- most-profit-assigning-work
- most-stones-removed-with-same-row-or-column
- most-visited-sector-in-a-circular-track
- move-sub-tree-of-n-ary-tree
- movie-rating
- moving-average-from-data-stream
- moving-stones-until-consecutive
- moving-stones-until-consecutive-ii
- multiply-strings
- my-calendar-i
- my-calendar-ii
- my-calendar-iii
- n-ary-tree-level-order-traversal
- n-ary-tree-postorder-traversal
- n-ary-tree-preorder-traversal
- n-queens
- n-repeated-element-in-size-2n-array
- n-th-tribonacci-number
- nested-list-weight-sum
- nested-list-weight-sum-ii
- network-delay-time
- new-21-game
- new-users-daily-count
- next-closest-time
- next-greater-element-i
- next-greater-element-ii
- next-greater-element-iii
- next-greater-node-in-linked-list
- next-palindrome-using-same-digits
- next-permutation
- nim-game
- non-decreasing-array
- non-overlapping-intervals
- not-boring-movies
- npv-queries
- nth-digit
- nth-highest-salary
- number-of-atoms
- number-of-boomerangs
- number-of-burgers-with-no-waste-of-ingredients
- number-of-calls-between-two-persons
- number-of-closed-islands
- number-of-comments-per-post
- number-of-connected-components-in-an-undirected-graph
- number-of-corner-rectangles
- number-of-days-between-two-dates
- number-of-days-in-a-month
- number-of-different-integers-in-a-string
- number-of-different-subsequences-gcds
- number-of-digit-one
- number-of-distinct-islands
- number-of-distinct-islands-ii
- number-of-distinct-substrings-in-a-string
- number-of-enclaves
- number-of-equivalent-domino-pairs
- number-of-good-leaf-nodes-pairs
- number-of-good-pairs
- number-of-good-ways-to-split-a-string
- number-of-islands
- number-of-islands-ii
- number-of-lines-to-write-string
- number-of-longest-increasing-subsequence
- number-of-matching-subsequences
- number-of-music-playlists
- number-of-nodes-in-the-sub-tree-with-the-same-label
- number-of-operations-to-make-network-connected
- number-of-orders-in-the-backlog
- number-of-paths-with-max-score
- number-of-provinces
- number-of-recent-calls
- number-of-rectangles-that-can-form-the-largest-square
- number-of-restricted-paths-from-first-to-last-node
- number-of-sets-of-k-non-overlapping-line-segments
- number-of-ships-in-a-rectangle
- number-of-squareful-arrays
- number-of-steps-to-reduce-a-number-to-zero
- number-of-students-unable-to-eat-lunch
- number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
- number-of-sub-arrays-with-odd-sum
- number-of-subarrays-with-bounded-maximum
- number-of-submatrices-that-sum-to-target
- number-of-subsequences-that-satisfy-the-given-sum-condition
- number-of-substrings-containing-all-three-characters
- number-of-transactions-per-visit
- number-of-trusted-contacts-of-a-customer
- number-of-valid-subarrays
- number-of-valid-words-for-each-puzzle
- number-of-ways-of-cutting-a-pizza
- number-of-ways-to-form-a-target-string-given-a-dictionary
- number-of-ways-to-rearrange-sticks-with-k-sticks-visible
- number-of-ways-to-reconstruct-a-tree
- 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
- number-of-ways-where-square-of-number-is-equal-to-product-of-two-numbers
- number-of-wonderful-substrings
- numbers-at-most-n-given-digit-set
- numbers-with-same-consecutive-differences
- occurrences-after-bigram
- odd-even-jump
- odd-even-linked-list
- one-edit-distance
- ones-and-zeroes
- online-election
- online-majority-element-in-subarray
- online-stock-span
- open-the-lock
- optimal-account-balancing
- optimal-division
- optimize-water-distribution-in-a-village
- orderly-queue
- orders-with-maximum-quantity-above-average
- out-of-boundary-paths
- output-contest-matches
- pacific-atlantic-water-flow
- page-recommendations
- page-recommendations-ii
- paint-fence
- paint-house
- paint-house-ii
- paint-house-iii
- pairs-of-songs-with-total-durations-divisible-by-60
- palindrome-linked-list
- palindrome-pairs
- palindrome-partitioning
- palindrome-partitioning-ii
- palindrome-partitioning-iii
- palindrome-permutation
- palindrome-permutation-ii
- palindrome-removal
- pancake-sorting
- parallel-courses
- parallel-courses-ii
- parse-lisp-expression
- parsing-a-boolean-expression
- partition-array-for-maximum-sum
- partition-array-into-three-parts-with-equal-sum
- partition-equal-subset-sum
- partition-labels
- partition-to-k-equal-sum-subsets
- partitioning-into-minimum-number-of-deci-binary-numbers
- pascals-triangle
- pascals-triangle-ii
- patching-array
- path-crossing
- path-in-zigzag-labelled-binary-tree
- path-sum
- path-sum-ii
- path-sum-iii
- path-sum-iv
- path-with-maximum-gold
- path-with-maximum-minimum-value
- path-with-maximum-probability
- path-with-minimum-effort
- patients-with-a-condition
- peak-index-in-a-mountain-array
- peeking-iterator
- people-whose-list-of-favorite-companies-is-not-a-subset-of-another-list
- percentage-of-users-attended-a-contest
- perfect-rectangle
- perfect-squares
- perform-string-shifts
- permutation-in-string
- permutation-sequence
- permutations
- permutations-ii
- pizza-with-3n-slices
- plus-one
- plus-one-linked-list
- poor-pigs
- populating-next-right-pointers-in-each-node
- populating-next-right-pointers-in-each-node-ii
- positions-of-large-groups
- possible-bipartition
- pour-water
- power-of-four
- power-of-three
- power-of-two
- powx-n
- predict-the-winner
- prefix-and-suffix-search
- preimage-size-of-factorial-zeroes-function
- primary-department-for-each-employee
- prime-number-of-set-bits-in-binary-representation
- print-binary-tree
- print-foobar-alternately
- print-immutable-linked-list-in-reverse
- print-in-order
- print-words-vertically
- print-zero-even-odd
- prison-cells-after-n-days
- probability-of-a-two-boxes-having-the-same-number-of-distinct-balls
- process-tasks-using-servers
- product-of-array-except-self
- product-of-the-last-k-numbers
- product-of-two-run-length-encoded-arrays
- product-price-at-a-given-date
- product-sales-analysis-i
- product-sales-analysis-ii
- product-sales-analysis-iii
- products-price-for-each-store
- products-worth-over-invoices
- profitable-schemes
- project-employees-i
- project-employees-ii
- project-employees-iii
- projection-area-of-3d-shapes
- pseudo-palindromic-paths-in-a-binary-tree
- push-dominoes
- put-boxes-into-the-warehouse-i
- put-boxes-into-the-warehouse-ii
- pyramid-transition-matrix
- queens-that-can-attack-the-king
- queries-on-a-permutation-with-key
- queries-on-number-of-points-inside-a-circle
- queries-quality-and-percentage
- queue-reconstruction-by-height
- rabbits-in-forest
- race-car
- random-flip-matrix
- random-pick-index
- random-pick-with-blacklist
- random-pick-with-weight
- random-point-in-non-overlapping-rectangles
- range-addition
- range-addition-ii
- range-module
- range-sum-of-bst
- range-sum-of-sorted-subarray-sums
- range-sum-query-2d-immutable
- range-sum-query-2d-mutable
- range-sum-query-immutable
- range-sum-query-mutable
- rank-scores
- rank-teams-by-votes
- rank-transform-of-a-matrix
- rank-transform-of-an-array
- ransom-note
- reach-a-number
- reachable-nodes-in-subdivided-graph
- reaching-points
- read-n-characters-given-read4
- read-n-characters-given-read4-ii-call-multiple-times
- rearrange-products-table
- rearrange-string-k-distance-apart
- rearrange-words-in-a-sentence
- reconstruct-a-2-row-binary-matrix
- reconstruct-itinerary
- reconstruct-original-digits-from-english
- recover-a-tree-from-preorder-traversal
- recover-binary-search-tree
- rectangle-area
- rectangle-area-ii
- rectangle-overlap
- rectangles-area
- recyclable-and-low-fat-products
- redistribute-characters-to-make-all-strings-equal
- reduce-array-size-to-the-half
- reducing-dishes
- reduction-operations-to-make-the-array-elements-equal
- redundant-connection
- redundant-connection-ii
- reformat-department-table
- regions-cut-by-slashes
- regular-expression-matching
- relative-ranks
- relative-sort-array
- remove-9
- remove-all-adjacent-duplicates-in-string
- remove-all-adjacent-duplicates-in-string-ii
- remove-all-occurrences-of-a-substring
- remove-boxes
- remove-comments
- remove-covered-intervals
- remove-duplicate-letters
- remove-duplicates-from-an-unsorted-linked-list
- remove-duplicates-from-sorted-array
- remove-duplicates-from-sorted-array-ii
- remove-duplicates-from-sorted-list-ii
- remove-element
- remove-interval
- remove-invalid-parentheses
- remove-k-digits
- remove-linked-list-elements
- remove-max-number-of-edges-to-keep-graph-fully-traversable
- remove-nth-node-from-end-of-list
- remove-one-element-to-make-the-array-strictly-increasing
- remove-outermost-parentheses
- remove-palindromic-subsequences
- remove-sub-folders-from-the-filesystem
- remove-vowels-from-a-string
- remove-zero-sum-consecutive-nodes-from-linked-list
- reorder-data-in-log-files
- reorder-list
- reorder-routes-to-make-all-paths-lead-to-the-city-zero
- reordered-power-of-2
- reorganize-string
- repeated-dna-sequences
- repeated-string-match
- repeated-substring-pattern
- replace-employee-id-with-the-unique-identifier
- replace-the-substring-for-balanced-string
- replace-words
- report-contiguous-dates
- reported-posts
- reported-posts-ii
- reshape-the-matrix
- restaurant-growth
- restore-the-array
- restore-the-array-from-adjacent-pairs
- reveal-cards-in-increasing-order
- reverse-bits
- reverse-linked-list
- reverse-nodes-in-k-group
- reverse-only-letters
- reverse-pairs
- reverse-string
- reverse-string-ii
- reverse-subarray-to-maximize-array-value
- reverse-substrings-between-each-pair-of-parentheses
- reverse-words-in-a-string
- reverse-words-in-a-string-ii
- reverse-words-in-a-string-iii
- richest-customer-wealth
- rising-temperature
- rle-iterator
- robot-bounded-in-circle
- robot-return-to-origin
- robot-room-cleaner
- roman-to-integer
- rotate-array
- rotate-function
- rotate-image
- rotate-string
- rotated-digits
- rotating-the-box
- rotting-oranges
- running-sum-of-1d-array
- running-total-for-different-genders
- russian-doll-envelopes
- sales-analysis-i
- sales-analysis-ii
- sales-analysis-iii
- sales-by-day-of-the-week
- sales-person
- same-tree
- satisfiability-of-equality-equations
- score-after-flipping-matrix
- search-a-2d-matrix
- search-a-2d-matrix-ii
- search-in-a-binary-search-tree
- search-in-a-sorted-array-of-unknown-size
- search-suggestions-system
- seat-reservation-manager
- second-degree-follower
- second-highest-salary
- second-largest-digit-in-a-string
- second-minimum-node-in-a-binary-tree
- self-crossing
- sell-diminishing-valued-colored-balls
- sellers-with-no-sales
- sentence-screen-fitting
- sentence-similarity
- sentence-similarity-ii
- sentence-similarity-iii
- sequence-reconstruction
- sequential-digits
- serialize-and-deserialize-binary-tree
- serialize-and-deserialize-bst
- serialize-and-deserialize-n-ary-tree
- set-intersection-size-at-least-two
- set-matrix-zeroes
- set-mismatch
- shift-2d-grid
- shifting-letters
- shopping-offers
- short-encoding-of-words
- shortest-bridge
- shortest-common-supersequence
- shortest-completing-word
- shortest-distance-from-all-buildings
- shortest-distance-in-a-line
- shortest-distance-in-a-plane
- shortest-distance-to-a-character
- shortest-distance-to-target-color
- shortest-palindrome
- shortest-path-in-a-grid-with-obstacles-elimination
- shortest-path-in-binary-matrix
- shortest-path-to-get-all-keys
- shortest-path-to-get-food
- shortest-path-visiting-all-nodes
- shortest-path-with-alternating-colors
- shortest-subarray-to-be-removed-to-make-array-sorted
- shortest-subarray-with-sum-at-least-k
- shortest-unsorted-continuous-subarray
- shortest-way-to-form-string
- shortest-word-distance
- shortest-word-distance-ii
- shortest-word-distance-iii
- shuffle-an-array
- shuffle-string
- sign-of-the-product-of-an-array
- similar-rgb-color
- similar-string-groups
- single-element-in-a-sorted-array
- single-number
- single-number-ii
- single-number-iii
- single-row-keyboard
- single-threaded-cpu
- sliding-puzzle
- sliding-window-maximum
- sliding-window-median
- slowest-key
- smallest-common-region
- smallest-integer-divisible-by-k
- smallest-range-covering-elements-from-k-lists
- smallest-range-i
- smallest-range-ii
- smallest-rectangle-enclosing-black-pixels
- smallest-rotation-with-highest-score
- smallest-string-starting-from-leaf
- smallest-string-with-a-given-numeric-value
- smallest-string-with-swaps
- smallest-subsequence-of-distinct-characters
- smallest-subtree-with-all-the-deepest-nodes
- smallest-sufficient-team
- snakes-and-ladders
- snapshot-array
- solve-the-equation
- sort-an-array
- sort-array-by-increasing-frequency
- sort-array-by-parity
- sort-array-by-parity-ii
- sort-characters-by-frequency
- sort-colors
- sort-features-by-popularity
- sort-integers-by-the-number-of-1-bits
- sort-integers-by-the-power-value
- sort-items-by-groups-respecting-dependencies
- sort-list
- sort-the-matrix-diagonally
- sort-transformed-array
- sorting-the-sentence
- soup-servings
- sparse-matrix-multiplication
- special-array-with-x-elements-greater-than-or-equal-x
- special-binary-string
- special-positions-in-a-binary-matrix
- spiral-matrix
- spiral-matrix-ii
- spiral-matrix-iii
- split-a-string-in-balanced-strings
- split-a-string-into-the-max-number-of-unique-substrings
- split-array-into-consecutive-subsequences
- split-array-into-fibonacci-sequence
- split-array-largest-sum
- split-array-with-equal-sum
- split-array-with-same-average
- split-bst
- split-concatenated-strings
- split-linked-list-in-parts
- splitting-a-string-into-descending-consecutive-values
- squares-of-a-sorted-array
- stamping-the-sequence
- statistics-from-a-large-sample
- stepping-numbers
- stickers-to-spell-word
- stone-game
- stone-game-ii
- stone-game-iii
- stone-game-iv
- stone-game-v
- stone-game-vi
- stone-game-vii
- stone-game-viii
- strange-printer
- strange-printer-ii
- stream-of-characters
- string-compression
- string-matching-in-an-array
- string-to-integer-atoi
- string-transforms-into-another-string
- string-without-aaa-or-bbb
- strings-differ-by-one-character
- strobogrammatic-number
- strobogrammatic-number-ii
- strobogrammatic-number-iii
- strong-password-checker
- students-and-examinations
- students-report-by-geography
- students-with-invalid-departments
- subarray-product-less-than-k
- subarray-sum-equals-k
- subarray-sums-divisible-by-k
- subarrays-with-k-different-integers
- subdomain-visit-count
- subrectangle-queries
- subsets-ii
- substring-with-concatenation-of-all-words
- substrings-of-size-three-with-distinct-characters
- subtree-of-another-tree
- sudoku-solver
- sum-of-absolute-differences-in-a-sorted-array
- sum-of-all-odd-length-subarrays
- sum-of-all-subset-xor-totals
- sum-of-beauty-of-all-substrings
- sum-of-digits-in-base-k
- sum-of-digits-in-the-minimum-number
- sum-of-distances-in-tree
- sum-of-even-numbers-after-queries
- sum-of-floored-pairs
- sum-of-left-leaves
- sum-of-mutated-array-closest-to-target
- sum-of-nodes-with-even-valued-grandparent
- sum-of-root-to-leaf-binary-numbers
- sum-of-special-evenly-spaced-elements-in-array
- sum-of-square-numbers
- sum-of-subarray-minimums
- sum-of-subsequence-widths
- sum-of-two-integers
- sum-of-unique-elements
- sum-root-to-leaf-numbers
- super-palindromes
- super-pow
- super-ugly-number
- super-washing-machines
- surface-area-of-3d-shapes
- surrounded-regions
- suspicious-bank-accounts
- swap-adjacent-in-lr-string
- swap-for-longest-repeated-character-substring
- swap-salary
- swapping-nodes-in-a-linked-list
- swim-in-rising-water
- symmetric-tree
- synonymous-sentences
- tallest-billboard
- target-sum
- task-scheduler
- team-scores-in-football-tournament
- teemo-attacking
- tenth-line
- ternary-expression-parser
- text-justification
- the-dining-philosophers
- the-earliest-and-latest-rounds-where-players-compete
- the-earliest-moment-when-everyone-become-friends
- the-k-strongest-values-in-an-array
- the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
- the-k-weakest-rows-in-a-matrix
- the-latest-login-in-2020
- the-maze
- the-maze-ii
- the-maze-iii
- the-most-frequently-ordered-products-for-each-customer
- the-most-recent-orders-for-each-product
- the-most-recent-three-orders
- the-number-of-employees-which-report-to-each-employee
- the-number-of-full-rounds-you-have-played
- the-skyline-problem
- third-maximum-number
- three-equal-parts
- throne-inheritance
- time-based-key-value-store
- time-needed-to-inform-all-employees
- toeplitz-matrix
- top-k-frequent-elements
- top-k-frequent-words
- top-travellers
- toss-strange-coins
- total-hamming-distance
- total-sales-amount-by-year
- tournament-winners
- traffic-light-controlled-intersection
- transform-to-chessboard
- transpose-file
- transpose-matrix
- trapping-rain-water
- trapping-rain-water-ii
- tree-diameter
- tree-node
- tree-of-coprimes
- triangle-judgement
- trim-a-binary-search-tree
- triples-with-bitwise-and-equal-to-zero
- trips-and-users
- truncate-sentence
- tweet-counts-per-frequency
- two-city-scheduling
- two-sum-bsts
- two-sum-iii-data-structure-design
- two-sum-iv-input-is-a-bst
- two-sum-less-than-k
- ugly-number-ii
- ugly-number-iii
- uncommon-words-from-two-sentences
- uncrossed-lines
- unique-binary-search-trees
- unique-binary-search-trees-ii
- unique-email-addresses
- unique-morse-code-words
- unique-number-of-occurrences
- unique-orders-and-customers-per-month
- unique-paths
- unique-paths-ii
- unique-paths-iii
- unique-substrings-in-wraparound-string
- unique-word-abbreviation
- univalued-binary-tree
- unpopular-books
- user-activity-for-the-past-30-days-i
- user-activity-for-the-past-30-days-ii
- user-purchase-platform
- utf-8-validation
- valid-anagram
- valid-boomerang
- valid-number
- valid-palindrome-ii
- valid-palindrome-iii
- valid-parenthesis-string
- valid-permutations-for-di-sequence
- valid-phone-numbers
- valid-square
- valid-sudoku
- valid-tic-tac-toe-state
- valid-triangle-number
- valid-word-abbreviation
- valid-word-square
- validate-binary-search-tree
- validate-binary-tree-nodes
- validate-stack-sequences
- verbal-arithmetic-puzzle
- verify-preorder-sequence-in-binary-search-tree
- verify-preorder-serialization-of-a-binary-tree
- verifying-an-alien-dictionary
- vertical-order-traversal-of-a-binary-tree
- video-stitching
- vowel-spellchecker
- walking-robot-simulation
- walls-and-gates
- warehouse-manager
- water-and-jug-problem
- water-bottles
- ways-to-make-a-fair-array
- ways-to-split-array-into-three-subarrays
- weather-type-in-each-country
- web-crawler
- web-crawler-multithreaded
- where-will-the-ball-fall
- widest-vertical-area-between-two-points-containing-no-points
- wiggle-sort
- wiggle-sort-ii
- wiggle-subsequence
- wildcard-matching
- winning-candidate
- word-abbreviation
- word-break
- word-break-ii
- word-frequency
- word-ladder
- word-ladder-ii
- word-pattern
- word-pattern-ii
- word-search
- word-search-ii
- word-squares
- word-subsets
- x-of-a-kind-in-a-deck-of-cards
- xor-operation-in-an-array
- xor-queries-of-a-subarray
- zigzag-iterator
- zuma-game
- readme
- tag
- array
- backtracking
- binary-indexed-tree
- binary-search
- binary-search-tree
- bit-manipulation
- breadth-first-search
- depth-first-search
- design
- divide-and-conquer
- dynamic-programming
- geometry
- graph
- greedy
- hash-table
- heap
- line-sweep
- linked-list
- math
- memoization
- minimax
- ordered-map
- queue
- random
- recursion
- rejection-sampling
- reservoir-sampling
- rolling-hash
- segment-tree
- sliding-window
- sort
- stack
- string
- suffix-array
- topological-sort
- tree
- trie
- two-pointers
- union-find
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