Skip to content

Latest commit

 

History

1,155 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

LeetCode Topics

Database

0175-combine-two-tables
0176-second-highest-salary
0177-nth-highest-salary
0178-rank-scores
0183-customers-who-never-order
0196-delete-duplicate-emails
0511-game-play-analysis-i
0586-customer-placing-the-largest-number-of-orders
0595-big-countries
0596-classes-with-at-least-5-students
1050-actors-and-directors-who-cooperated-at-least-three-times
1148-article-views-i
1484-group-sold-products-by-the-date
1517-find-users-with-valid-e-mails
1527-patients-with-a-condition
1667-fix-names-in-a-table
1683-invalid-tweets
1693-daily-leads-and-partners
1757-recyclable-and-low-fat-products
1795-rearrange-products-table
1873-calculate-special-bonus

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0141-linked-list-cycle
0633-sum-of-square-numbers
3302-find-the-lexicographically-smallest-valid-sequence
3643-flip-square-submatrix-vertically

String

0005-longest-palindromic-substring
0006-zigzag-conversion
0008-string-to-integer-atoi
0010-regular-expression-matching
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0067-add-binary
0093-restore-ip-addresses
0097-interleaving-string
0115-distinct-subsequences
0139-word-break
0166-fraction-to-recurring-decimal
0214-shortest-palindrome
0394-decode-string
0424-longest-repeating-character-replacement
0459-repeated-substring-pattern
0482-license-key-formatting
0520-detect-capital
0686-repeated-string-match
0720-longest-word-in-dictionary
0761-special-binary-string
0796-rotate-string
0831-masking-personal-information
1358-number-of-substrings-containing-all-three-characters
1392-longest-happy-prefix
1404-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1461-check-if-a-string-contains-all-binary-codes-of-size-k
1545-find-kth-bit-in-nth-binary-string
1689-partitioning-into-minimum-number-of-deci-binary-numbers
1758-minimum-changes-to-make-alternating-binary-string
1784-check-if-binary-string-has-at-most-one-segment-of-ones
1888-minimum-number-of-flips-to-make-the-binary-string-alternating
1927-sum-game
1980-find-unique-binary-string
2213-longest-substring-of-one-repeating-character
2223-sum-of-scores-of-built-strings
2904-shortest-and-lexicographically-smallest-beautiful-string
3090-maximum-length-substring-with-two-occurrences
3302-find-the-lexicographically-smallest-valid-sequence
3666-minimum-operations-to-equalize-binary-string
3720-lexicographically-smallest-permutation-greater-than-target

Dynamic Programming

0005-longest-palindromic-substring
0010-regular-expression-matching
0022-generate-parentheses
0070-climbing-stairs
0097-interleaving-string
0115-distinct-subsequences
0118-pascals-triangle
0139-word-break
0198-house-robber
0233-number-of-digit-one
0494-target-sum
0877-stone-game
0913-cat-and-mouse
1140-stone-game-ii
1191-k-concatenation-maximum-sum
1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1406-stone-game-iii
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1510-stone-game-iv
1563-stone-game-v
1594-maximum-non-negative-product-in-a-matrix
1621-number-of-sets-of-k-non-overlapping-line-segments
1866-number-of-ways-to-rearrange-sticks-with-k-sticks-visible
1872-stone-game-viii
1888-minimum-number-of-flips-to-make-the-binary-string-alternating
3129-find-all-possible-stable-binary-arrays-i
3130-find-all-possible-stable-binary-arrays-ii
3302-find-the-lexicographically-smallest-valid-sequence
3524-find-x-value-of-array-i

Math

0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0060-permutation-sequence
0067-add-binary
0070-climbing-stairs
0089-gray-code
0149-max-points-on-a-line
0150-evaluate-reverse-polish-notation
0166-fraction-to-recurring-decimal
0172-factorial-trailing-zeroes
0204-count-primes
0223-rectangle-area
0233-number-of-digit-one
0263-ugly-number
0292-nim-game
0335-self-crossing
0371-sum-of-two-integers
0391-perfect-rectangle
0478-generate-random-point-in-a-circle
0587-erect-the-fence
0633-sum-of-square-numbers
0728-self-dividing-numbers
0762-prime-number-of-set-bits-in-binary-representation
0812-largest-triangle-area
0877-stone-game
0883-projection-area-of-3d-shapes
0913-cat-and-mouse
0932-beautiful-array
0952-largest-component-size-by-common-factor
1015-smallest-integer-divisible-by-k
1140-stone-game-ii
1406-stone-game-iii
1492-the-kth-factor-of-n
1510-stone-game-iv
1563-stone-game-v
1621-number-of-sets-of-k-non-overlapping-line-segments
1680-concatenation-of-consecutive-binary-numbers
1866-number-of-ways-to-rearrange-sticks-with-k-sticks-visible
1872-stone-game-viii
1878-get-biggest-three-rhombus-sums-in-a-grid
1927-sum-game
1979-find-greatest-common-divisor-of-array
2029-stone-game-ix
2485-find-the-pivot-integer
3115-maximum-prime-difference
3116-kth-smallest-amount-with-single-denomination-combination
3296-minimum-number-of-seconds-to-make-mountain-height-zero
3345-smallest-divisible-digit-product-i
3524-find-x-value-of-array-i
3525-find-x-value-of-array-ii
3550-smallest-index-with-digit-sum-equal-to-index
3622-check-divisibility-by-digit-sum-and-product
3666-minimum-operations-to-equalize-binary-string
3871-count-commas-in-range-ii
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii

Recursion

0010-regular-expression-matching
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0025-reverse-nodes-in-k-group
0060-permutation-sequence
0206-reverse-linked-list
0233-number-of-digit-one
0394-decode-string
1545-find-kth-bit-in-nth-binary-string

Array

0001-two-sum
0011-container-with-most-water
0014-longest-common-prefix
0015-3sum
0016-3sum-closest
0018-4sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0036-valid-sudoku
0041-first-missing-positive
0056-merge-intervals
0084-largest-rectangle-in-histogram
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0118-pascals-triangle
0135-candy
0136-single-number
0137-single-number-ii
0139-word-break
0149-max-points-on-a-line
0150-evaluate-reverse-polish-notation
0198-house-robber
0204-count-primes
0215-kth-largest-element-in-an-array
0219-contains-duplicate-ii
0307-range-sum-query-mutable
0335-self-crossing
0373-find-k-pairs-with-smallest-sums
0391-perfect-rectangle
0448-find-all-numbers-disappeared-in-an-array
0463-island-perimeter
0485-max-consecutive-ones
0493-reverse-pairs
0494-target-sum
0587-erect-the-fence
0636-exclusive-time-of-functions
0645-set-mismatch
0704-binary-search
0720-longest-word-in-dictionary
0731-my-calendar-ii
0739-daily-temperatures
0812-largest-triangle-area
0815-bus-routes
0835-image-overlap
0852-peak-index-in-a-mountain-array
0860-lemonade-change
0877-stone-game
0883-projection-area-of-3d-shapes
0912-sort-an-array
0932-beautiful-array
0952-largest-component-size-by-common-factor
1140-stone-game-ii
1191-k-concatenation-maximum-sum
1200-minimum-absolute-difference
1311-get-watched-videos-by-your-friends
1354-construct-target-array-with-multiple-sums
1356-sort-integers-by-the-number-of-1-bits
1365-how-many-numbers-are-smaller-than-the-current-number
1386-cinema-seat-allocation
1406-stone-game-iii
1441-build-an-array-with-stack-operations
1470-shuffle-the-array
1475-final-prices-with-a-special-discount-in-a-shop
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1502-can-make-arithmetic-progression-from-sequence
1536-minimum-swaps-to-arrange-a-binary-grid
1563-stone-game-v
1582-special-positions-in-a-binary-matrix
1584-min-cost-to-connect-all-points
1590-make-sum-divisible-by-p
1594-maximum-non-negative-product-in-a-matrix
1658-minimum-operations-to-reduce-x-to-zero
1664-ways-to-make-a-fair-array
1727-largest-submatrix-with-rearrangements
1765-map-of-highest-peak
1872-stone-game-viii
1878-get-biggest-three-rhombus-sums-in-a-grid
1886-determine-whether-matrix-can-be-obtained-by-rotation
1887-reduction-operations-to-make-the-array-elements-equal
1929-concatenation-of-array
1979-find-greatest-common-divisor-of-array
1980-find-unique-binary-string
2029-stone-game-ix
2065-maximum-path-quality-of-a-graph
2091-removing-minimum-and-maximum-from-array
2196-create-binary-tree-from-descriptions
2213-longest-substring-of-one-repeating-character
2615-sum-of-distances
2906-construct-product-matrix
2940-find-building-where-alice-and-bob-can-meet
3069-distribute-elements-into-two-arrays-i
3070-count-submatrices-with-top-left-element-and-sum-less-than-k
3115-maximum-prime-difference
3116-kth-smallest-amount-with-single-denomination-combination
3212-count-submatrices-with-equal-frequency-of-x-and-y
3296-minimum-number-of-seconds-to-make-mountain-height-zero
3471-find-the-largest-almost-missing-integer
3524-find-x-value-of-array-i
3525-find-x-value-of-array-ii
3546-equal-sum-grid-partition-i
3550-smallest-index-with-digit-sum-equal-to-index
3567-minimum-absolute-difference-in-sliding-submatrix
3568-minimum-moves-to-clean-the-classroom
3643-flip-square-submatrix-vertically
3653-xor-after-range-multiplication-queries-i
3702-longest-subsequence-with-non-zero-bitwise-xor
3718-smallest-missing-multiple-of-k
3731-find-missing-elements
3740-minimum-distance-between-three-equal-elements-i
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3903-smallest-stable-index-i

Greedy

0011-container-with-most-water
0135-candy
0860-lemonade-change
1386-cinema-seat-allocation
1536-minimum-swaps-to-arrange-a-binary-grid
1689-partitioning-into-minimum-number-of-deci-binary-numbers
1727-largest-submatrix-with-rearrangements
1927-sum-game
2029-stone-game-ix
2091-removing-minimum-and-maximum-from-array
3296-minimum-number-of-seconds-to-make-mountain-height-zero
3302-find-the-lexicographically-smallest-valid-sequence
3600-maximize-spanning-tree-stability-with-upgrades
3720-lexicographically-smallest-permutation-greater-than-target

Hash Table

0001-two-sum
0012-integer-to-roman
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0036-valid-sudoku
0041-first-missing-positive
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0138-copy-list-with-random-pointer
0139-word-break
0141-linked-list-cycle
0149-max-points-on-a-line
0166-fraction-to-recurring-decimal
0219-contains-duplicate-ii
0391-perfect-rectangle
0424-longest-repeating-character-replacement
0448-find-all-numbers-disappeared-in-an-array
0645-set-mismatch
0720-longest-word-in-dictionary
0815-bus-routes
0952-largest-component-size-by-common-factor
1015-smallest-integer-divisible-by-k
1311-get-watched-videos-by-your-friends
1358-number-of-substrings-containing-all-three-characters
1365-how-many-numbers-are-smaller-than-the-current-number
1386-cinema-seat-allocation
1461-check-if-a-string-contains-all-binary-codes-of-size-k
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1590-make-sum-divisible-by-p
1658-minimum-operations-to-reduce-x-to-zero
1980-find-unique-binary-string
2196-create-binary-tree-from-descriptions
2508-add-edges-to-make-degrees-of-all-nodes-even
2615-sum-of-distances
3090-maximum-length-substring-with-two-occurrences
3471-find-the-largest-almost-missing-integer
3568-minimum-moves-to-clean-the-classroom
3718-smallest-missing-multiple-of-k
3720-lexicographically-smallest-permutation-greater-than-target
3731-find-missing-elements
3740-minimum-distance-between-three-equal-elements-i

Trie

0014-longest-common-prefix
0139-word-break
0440-k-th-smallest-in-lexicographical-order
0720-longest-word-in-dictionary

Sorting

0015-3sum
0016-3sum-closest
0018-4sum
0056-merge-intervals
0147-insertion-sort-list
0215-kth-largest-element-in-an-array
0645-set-mismatch
0720-longest-word-in-dictionary
0761-special-binary-string
0912-sort-an-array
1200-minimum-absolute-difference
1311-get-watched-videos-by-your-friends
1356-sort-integers-by-the-number-of-1-bits
1365-how-many-numbers-are-smaller-than-the-current-number
1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
1502-can-make-arithmetic-progression-from-sequence
1727-largest-submatrix-with-rearrangements
1878-get-biggest-three-rhombus-sums-in-a-grid
1887-reduction-operations-to-make-the-array-elements-equal
3567-minimum-absolute-difference-in-sliding-submatrix
3731-find-missing-elements

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0077-combinations
0089-gray-code
0093-restore-ip-addresses
0401-binary-watch
0494-target-sum
0797-all-paths-from-source-to-target
1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1980-find-unique-binary-string
2065-maximum-path-quality-of-a-graph

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0024-swap-nodes-in-pairs
0025-reverse-nodes-in-k-group
0083-remove-duplicates-from-sorted-list
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0147-insertion-sort-list
0206-reverse-linked-list
0328-odd-even-linked-list
2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points

Stack

0020-valid-parentheses
0084-largest-rectangle-in-histogram
0150-evaluate-reverse-polish-notation
0394-decode-string
0636-exclusive-time-of-functions
0739-daily-temperatures
1441-build-an-array-with-stack-operations
1475-final-prices-with-a-special-discount-in-a-shop
2940-find-building-where-alice-and-bob-can-meet

Divide and Conquer

0023-merge-k-sorted-lists
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0190-reverse-bits
0191-number-of-1-bits
0215-kth-largest-element-in-an-array
0307-range-sum-query-mutable
0493-reverse-pairs
0761-special-binary-string
0912-sort-an-array
0932-beautiful-array
3653-xor-after-range-multiplication-queries-i

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0373-find-k-pairs-with-smallest-sums
0743-network-delay-time
0912-sort-an-array
1354-construct-target-array-with-multiple-sums
1878-get-biggest-three-rhombus-sums-in-a-grid
2203-minimum-weighted-subgraph-with-the-required-paths
2642-design-graph-with-shortest-path-calculator
2940-find-building-where-alice-and-bob-can-meet
3296-minimum-number-of-seconds-to-make-mountain-height-zero

Merge Sort

0023-merge-k-sorted-lists
0493-reverse-pairs
0912-sort-an-array

Simulation

0067-add-binary
1404-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
1441-build-an-array-with-stack-operations
1545-find-kth-bit-in-nth-binary-string
1680-concatenation-of-consecutive-binary-numbers
1929-concatenation-of-array
3069-distribute-elements-into-two-arrays-i
3653-xor-after-range-multiplication-queries-i

Bit Manipulation

0067-add-binary
0089-gray-code
0136-single-number
0137-single-number-ii
0190-reverse-bits
0191-number-of-1-bits
0371-sum-of-two-integers
0401-binary-watch
0645-set-mismatch
0693-binary-number-with-alternating-bits
0762-prime-number-of-set-bits-in-binary-representation
0868-binary-gap
1009-complement-of-base-10-integer
1356-sort-integers-by-the-number-of-1-bits
1386-cinema-seat-allocation
1404-number-of-steps-to-reduce-a-number-in-binary-representation-to-one
1461-check-if-a-string-contains-all-binary-codes-of-size-k
1680-concatenation-of-consecutive-binary-numbers
3116-kth-smallest-amount-with-single-denomination-combination
3568-minimum-moves-to-clean-the-classroom
3702-longest-subsequence-with-non-zero-bitwise-xor

Counting Sort

0912-sort-an-array
1356-sort-integers-by-the-number-of-1-bits
1365-how-many-numbers-are-smaller-than-the-current-number
2029-stone-game-ix
3720-lexicographically-smallest-permutation-greater-than-target

Monotonic Stack

0084-largest-rectangle-in-histogram
0739-daily-temperatures
1475-final-prices-with-a-special-discount-in-a-shop
2940-find-building-where-alice-and-bob-can-meet

Rolling Hash

0214-shortest-palindrome
1392-longest-happy-prefix
1461-check-if-a-string-contains-all-binary-codes-of-size-k
2223-sum-of-scores-of-built-strings

Hash Function

0214-shortest-palindrome
1392-longest-happy-prefix
1461-check-if-a-string-contains-all-binary-codes-of-size-k
2223-sum-of-scores-of-built-strings

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
0459-repeated-substring-pattern
0686-repeated-string-match
0796-rotate-string
1392-longest-happy-prefix
2223-sum-of-scores-of-built-strings

Tree

0106-construct-binary-tree-from-inorder-and-postorder-traversal
0450-delete-node-in-a-bst
0687-longest-univalue-path
0700-search-in-a-binary-search-tree
0701-insert-into-a-binary-search-tree
1022-sum-of-root-to-leaf-binary-numbers
1080-insufficient-nodes-in-root-to-leaf-paths
2196-create-binary-tree-from-descriptions
2236-root-equals-sum-of-children
2265-count-nodes-equal-to-average-of-subtree

Depth-First Search

0463-island-perimeter
0687-longest-univalue-path
0743-network-delay-time
0797-all-paths-from-source-to-target
1022-sum-of-root-to-leaf-binary-numbers
1080-insufficient-nodes-in-root-to-leaf-paths
1971-find-if-path-exists-in-graph
2265-count-nodes-equal-to-average-of-subtree
2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components

Binary Tree

0106-construct-binary-tree-from-inorder-and-postorder-traversal
0450-delete-node-in-a-bst
0687-longest-univalue-path
0700-search-in-a-binary-search-tree
0701-insert-into-a-binary-search-tree
1022-sum-of-root-to-leaf-binary-numbers
1080-insufficient-nodes-in-root-to-leaf-paths
2196-create-binary-tree-from-descriptions
2236-root-equals-sum-of-children
2265-count-nodes-equal-to-average-of-subtree

Breadth-First Search

0463-island-perimeter
0743-network-delay-time
0797-all-paths-from-source-to-target
0815-bus-routes
1129-shortest-path-with-alternating-colors
1311-get-watched-videos-by-your-friends
1765-map-of-highest-peak
1971-find-if-path-exists-in-graph
2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components
3568-minimum-moves-to-clean-the-classroom
3666-minimum-operations-to-equalize-binary-string

Union-Find

0952-largest-component-size-by-common-factor
1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
1584-min-cost-to-connect-all-points
1971-find-if-path-exists-in-graph
2076-process-restricted-friend-requests
2492-minimum-score-of-a-path-between-two-cities
2685-count-the-number-of-complete-components
3600-maximize-spanning-tree-stability-with-upgrades
3666-minimum-operations-to-equalize-binary-string

Ordered Set

0493-reverse-pairs
0731-my-calendar-ii
2213-longest-substring-of-one-repeating-character
3666-minimum-operations-to-equalize-binary-string

Prefix Sum

0731-my-calendar-ii
1140-stone-game-ii
1590-make-sum-divisible-by-p
1621-number-of-sets-of-k-non-overlapping-line-segments
1658-minimum-operations-to-reduce-x-to-zero
1664-ways-to-make-a-fair-array
1872-stone-game-viii
1878-get-biggest-three-rhombus-sums-in-a-grid
2485-find-the-pivot-integer
2615-sum-of-distances
2906-construct-product-matrix
3070-count-submatrices-with-top-left-element-and-sum-less-than-k
3129-find-all-possible-stable-binary-arrays-i
3130-find-all-possible-stable-binary-arrays-ii
3212-count-submatrices-with-equal-frequency-of-x-and-y
3546-equal-sum-grid-partition-i
3653-xor-after-range-multiplication-queries-i
3903-smallest-stable-index-i

Quickselect

0215-kth-largest-element-in-an-array

Bucket Sort

0912-sort-an-array

Radix Sort

0912-sort-an-array

Matrix

0036-valid-sudoku
0463-island-perimeter
0835-image-overlap
0883-projection-area-of-3d-shapes
1536-minimum-swaps-to-arrange-a-binary-grid
1582-special-positions-in-a-binary-matrix
1594-maximum-non-negative-product-in-a-matrix
1727-largest-submatrix-with-rearrangements
1765-map-of-highest-peak
1878-get-biggest-three-rhombus-sums-in-a-grid
1886-determine-whether-matrix-can-be-obtained-by-rotation
2906-construct-product-matrix
3070-count-submatrices-with-top-left-element-and-sum-less-than-k
3212-count-submatrices-with-equal-frequency-of-x-and-y
3546-equal-sum-grid-partition-i
3567-minimum-absolute-difference-in-sliding-submatrix
3568-minimum-moves-to-clean-the-classroom
3643-flip-square-submatrix-vertically

Binary Search

0033-search-in-rotated-sorted-array
0493-reverse-pairs
0633-sum-of-square-numbers
0704-binary-search
0731-my-calendar-ii
0852-peak-index-in-a-mountain-array
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1658-minimum-operations-to-reduce-x-to-zero
2223-sum-of-scores-of-built-strings
2940-find-building-where-alice-and-bob-can-meet
3116-kth-smallest-amount-with-single-denomination-combination
3296-minimum-number-of-seconds-to-make-mountain-height-zero
3600-maximize-spanning-tree-stability-with-upgrades

Binary Indexed Tree

0307-range-sum-query-mutable
0493-reverse-pairs
2940-find-building-where-alice-and-bob-can-meet

Segment Tree

0307-range-sum-query-mutable
0493-reverse-pairs
0731-my-calendar-ii
2213-longest-substring-of-one-repeating-character
2940-find-building-where-alice-and-bob-can-meet
3525-find-x-value-of-array-ii

Sliding Window

0219-contains-duplicate-ii
0424-longest-repeating-character-replacement
1358-number-of-substrings-containing-all-three-characters
1477-find-two-non-overlapping-sub-arrays-each-with-target-sum
1658-minimum-operations-to-reduce-x-to-zero
1888-minimum-number-of-flips-to-make-the-binary-string-alternating
2904-shortest-and-lexicographically-smallest-beautiful-string
3090-maximum-length-substring-with-two-occurrences

Suffix Array

2223-sum-of-scores-of-built-strings

Number Theory

0204-count-primes
0952-largest-component-size-by-common-factor
1492-the-kth-factor-of-n
1979-find-greatest-common-divisor-of-array
3115-maximum-prime-difference
3116-kth-smallest-amount-with-single-denomination-combination

Graph Theory

0743-network-delay-time
0797-all-paths-from-source-to-target
0913-cat-and-mouse
1129-shortest-path-with-alternating-colors
1311-get-watched-videos-by-your-friends
1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
1557-minimum-number-of-vertices-to-reach-all-nodes
1584-min-cost-to-connect-all-points
1971-find-if-path-exists-in-graph
2065-maximum-path-quality-of-a-graph
2076-process-restricted-friend-requests
2203-minimum-weighted-subgraph-with-the-required-paths
2492-minimum-score-of-a-path-between-two-cities
2508-add-edges-to-make-degrees-of-all-nodes-even
2642-design-graph-with-shortest-path-calculator
2685-count-the-number-of-complete-components
3600-maximize-spanning-tree-stability-with-upgrades

Minimum Spanning Tree

1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
1584-min-cost-to-connect-all-points
3600-maximize-spanning-tree-stability-with-upgrades

Shortest Path

0743-network-delay-time
1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2203-minimum-weighted-subgraph-with-the-required-paths
2642-design-graph-with-shortest-path-calculator

Design

0307-range-sum-query-mutable
0731-my-calendar-ii
2642-design-graph-with-shortest-path-calculator

Binary Search Tree

0450-delete-node-in-a-bst
0700-search-in-a-binary-search-tree
0701-insert-into-a-binary-search-tree

Strongly Connected Component

1489-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree

Memoization

0070-climbing-stairs
0139-word-break
0913-cat-and-mouse

Brainteaser

0292-nim-game

Game Theory

0292-nim-game
0877-stone-game
0913-cat-and-mouse
1140-stone-game-ii
1406-stone-game-iii
1510-stone-game-iv
1563-stone-game-v
1872-stone-game-viii
1927-sum-game
2029-stone-game-ix

Topological Sort

0913-cat-and-mouse

Enumeration

0204-count-primes
3345-smallest-divisible-digit-product-i
3546-equal-sum-grid-partition-i
3720-lexicographically-smallest-permutation-greater-than-target

Combinatorics

1621-number-of-sets-of-k-non-overlapping-line-segments
1866-number-of-ways-to-rearrange-sticks-with-k-sticks-visible
3116-kth-smallest-amount-with-single-denomination-combination

Geometry

0149-max-points-on-a-line
0223-rectangle-area
0335-self-crossing
0391-perfect-rectangle
0478-generate-random-point-in-a-circle
0587-erect-the-fence
0812-largest-triangle-area
0883-projection-area-of-3d-shapes

Minimax

1140-stone-game-ii
1406-stone-game-iii
1510-stone-game-iv
1872-stone-game-viii
2029-stone-game-ix

Zero-Sum Game

1140-stone-game-ii
1406-stone-game-iii
1510-stone-game-iv
1872-stone-game-viii
2029-stone-game-ix

Z Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string

Knuth–Morris–Pratt Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string

Boyer–Moore String-Search Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string

Nim Game

1510-stone-game-iv
2029-stone-game-ix

Sprague–Grundy Theorem

1510-stone-game-iv

Sweep Line

0391-perfect-rectangle

Rejection Sampling

0478-generate-random-point-in-a-circle

Randomized

0478-generate-random-point-in-a-circle

Convex Hull

0587-erect-the-fence

Polygons

0587-erect-the-fence

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages