Skip to content

Ranadipgithub/leetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetCode

LeetCode Topics

Array

0004-median-of-two-sorted-arrays
0014-longest-common-prefix
0015-3sum
0016-3sum-closest
0036-valid-sudoku
0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0042-trapping-rain-water
0045-jump-game-ii
0046-permutations
0051-n-queens
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0057-insert-interval
0059-spiral-matrix-ii
0063-unique-paths-ii
0064-minimum-path-sum
0075-sort-colors
0078-subsets
0088-merge-sorted-array
0090-subsets-ii
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0123-best-time-to-buy-and-sell-stock-iii
0130-surrounded-regions
0135-candy
0137-single-number-ii
0139-word-break
0152-maximum-product-subarray
0154-find-minimum-in-rotated-sorted-array-ii
0188-best-time-to-buy-and-sell-stock-iv
0198-house-robber
0200-number-of-islands
0204-count-primes
0209-minimum-size-subarray-sum
0213-house-robber-ii
0215-kth-largest-element-in-an-array
0216-combination-sum-iii
0221-maximal-square
0229-majority-element-ii
0238-product-of-array-except-self
0239-sliding-window-maximum
0260-single-number-iii
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0309-best-time-to-buy-and-sell-stock-with-cooldown
0315-count-of-smaller-numbers-after-self
0322-coin-change
0327-count-of-range-sum
0329-longest-increasing-path-in-a-matrix
0368-largest-divisible-subset
0403-frog-jump
0410-split-array-largest-sum
0416-partition-equal-subset-sum
0419-battleships-in-a-board
0463-island-perimeter
0474-ones-and-zeroes
0486-predict-the-winner
0493-reverse-pairs
0494-target-sum
0496-next-greater-element-i
0498-diagonal-traverse
0503-next-greater-element-ii
0518-coin-change-ii
0526-beautiful-arrangement
0542-01-matrix
0560-subarray-sum-equals-k
0594-longest-harmonious-subsequence
0643-maximum-average-subarray-i
0646-maximum-length-of-pair-chain
0658-find-k-closest-elements
0673-number-of-longest-increasing-subsequence
0695-max-area-of-island
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0718-maximum-length-of-repeated-subarray
0719-find-k-th-smallest-pair-distance
0733-flood-fill
0735-asteroid-collision
0739-daily-temperatures
0747-min-cost-climbing-stairs
0825-max-increase-to-keep-city-skyline
0853-most-profit-assigning-work
0881-loud-and-rich
0882-peak-index-in-a-mountain-array
0892-shortest-subarray-with-sum-at-least-k
0898-transpose-matrix
0907-koko-eating-bananas
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0934-bitwise-ors-of-subarrays
0940-fruit-into-baskets
0941-sort-array-by-parity
0943-sum-of-subarray-minimums
0945-snakes-and-ladders
0948-sort-an-array
0958-sort-array-by-parity-ii
0966-binary-subarrays-with-sum
0971-shortest-bridge
1032-satisfiability-of-equality-equations
1036-rotting-oranges
1046-max-consecutive-ones-iii
1050-construct-binary-search-tree-from-preorder-traversal
1056-capacity-to-ship-packages-within-d-days
1073-number-of-enclaves
1117-as-far-from-land-as-possible
1121-partition-array-for-maximum-sum
1129-longest-string-chain
1171-shortest-path-in-binary-matrix
1185-find-in-mountain-array
1207-delete-nodes-and-return-forest
1253-sort-the-matrix-diagonally
1290-make-array-strictly-increasing
1293-three-consecutive-odds
1308-smallest-string-with-swaps
1325-path-with-maximum-probability
1335-maximum-candies-allocated-to-k-children
1342-queens-that-can-attack-the-king
1364-tuple-with-same-product
1367-maximum-height-by-stacking-cuboids
1370-count-number-of-nice-subarrays
1380-number-of-closed-islands
1386-shift-2d-grid
1402-count-square-submatrices-with-all-ones
1408-find-the-smallest-divisor-given-a-threshold
1424-maximum-candies-you-can-get-from-boxes
1428-jump-game-iii
1445-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
1447-jump-game-iv
1464-reduce-array-size-to-the-half
1478-maximum-number-of-events-that-can-be-attended
1496-lucky-numbers-in-a-matrix
1497-design-a-stack-with-increment-operation
1586-longest-subarray-of-1s-after-deleting-one-element
1605-minimum-number-of-days-to-make-m-bouquets
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1628-count-submatrices-with-all-ones
1646-kth-missing-positive-number
1663-detect-cycles-in-2d-grid
1669-minimum-cost-to-cut-a-stick
1706-min-cost-to-connect-all-points
1711-find-valid-matrix-given-row-and-column-sums
1716-maximum-non-negative-product-in-a-matrix
1753-path-with-minimum-effort
1766-minimum-number-of-removals-to-make-mountain-array
1787-sum-of-absolute-differences-in-a-sorted-array
1876-map-of-highest-peak
1878-check-if-array-is-sorted-and-rotated
1927-maximum-ascending-subarray-sum
1972-rotating-the-box
1995-finding-pairs-with-a-certain-sum
2022-maximum-alternating-subsequence-sum
2035-count-sub-islands
2048-build-array-from-permutation
2103-find-all-groups-of-farmland
2113-find-the-kth-largest-integer-in-the-array
2132-convert-1d-array-into-2d-array
2144-maximum-difference-between-increasing-elements
2150-kth-smallest-product-of-two-sorted-arrays
2176-parallel-courses-iii
2183-minimum-operations-to-convert-number
2204-find-subsequence-of-length-k-with-the-largest-sum
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2227-sum-of-subarray-ranges
2228-watering-plants-ii
2265-partition-array-according-to-given-pivot
2267-minimum-difference-in-sums-after-removal-of-elements
2290-removing-minimum-number-of-magic-beans
2320-find-all-k-distant-indices-in-an-array
2387-partition-array-such-that-maximum-difference-is-k
2398-check-if-matrix-is-x-matrix
2409-number-of-increasing-paths-in-a-grid
2432-number-of-zero-filled-subarrays
2478-longest-nice-subarray
2504-find-all-good-indices
2529-range-product-queries-of-powers
2551-apply-operations-to-an-array
2552-maximum-sum-of-distinct-subarrays-with-length-k
2696-the-number-of-beautiful-subsets
2707-merge-two-2d-arrays-by-summing-values
2714-left-and-right-sum-differences
2720-minimize-the-maximum-difference-of-pairs
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3152-maximum-value-of-an-ordered-triplet-ii
3154-maximum-value-of-an-ordered-triplet-i
3171-minimum-equal-sum-of-two-arrays-after-replacing-zeros
3184-maximum-balanced-subsequence-sum
3209-minimum-number-of-coins-for-fruits
3215-matrix-similarity-after-cyclic-shifts
3241-divide-array-into-arrays-with-max-difference
3251-maximum-area-of-longest-diagonal-rectangle
3330-modify-the-matrix
3335-minimum-operations-to-write-the-letter-y-on-a-grid
3372-longest-strictly-increasing-or-strictly-decreasing-subarray
3429-special-array-i
3434-find-the-number-of-distinct-colors-among-the-balls
3461-find-the-minimum-area-to-cover-all-ones-i
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3491-find-the-maximum-length-of-valid-subsequence-ii
3733-length-of-longest-v-shaped-diagonal-segment
3747-maximum-difference-between-adjacent-elements-in-a-circular-array
3748-sort-matrix-by-diagonals
3750-closest-equal-element-queries
3788-maximum-unique-subarray-sum-after-deletion

Hash Table

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0036-valid-sudoku
0037-sudoku-solver
0076-minimum-window-substring
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0126-word-ladder-ii
0127-word-ladder
0139-word-break
0141-linked-list-cycle
0146-lru-cache
0205-isomorphic-strings
0229-majority-element-ii
0242-valid-anagram
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0451-sort-characters-by-frequency
0496-next-greater-element-i
0560-subarray-sum-equals-k
0567-permutation-in-string
0594-longest-harmonious-subsequence
0653-two-sum-iv-input-is-a-bst
0768-partition-labels
0778-reorganize-string
0893-all-nodes-distance-k-in-binary-tree
0900-reordered-power-of-2
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0931-maximum-frequency-stack
0940-fruit-into-baskets
0966-binary-subarrays-with-sum
0984-most-stones-removed-with-same-row-or-column
1029-vertical-order-traversal-of-a-binary-tree
1129-longest-string-chain
1207-delete-nodes-and-return-forest
1308-smallest-string-with-swaps
1364-tuple-with-same-product
1370-count-number-of-nice-subarrays
1423-maximum-number-of-occurrences-of-a-substring
1447-jump-game-iv
1460-number-of-substrings-containing-all-three-characters
1464-reduce-array-size-to-the-half
1557-check-if-a-string-contains-all-binary-codes-of-size-k
1632-number-of-good-ways-to-split-a-string
1890-sum-of-beauty-of-all-substrings
1915-check-if-one-string-swap-can-make-strings-equal
1987-substrings-of-size-three-with-distinct-characters
1995-finding-pairs-with-a-certain-sum
2204-find-subsequence-of-length-k-with-the-largest-sum
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2434-design-a-number-container-system
2461-amount-of-time-for-binary-tree-to-be-infected
2520-using-a-robot-to-print-the-lexicographically-smallest-string
2552-maximum-sum-of-distinct-subarrays-with-length-k
2696-the-number-of-beautiful-subsets
2707-merge-two-2d-arrays-by-summing-values
3335-minimum-operations-to-write-the-letter-y-on-a-grid
3360-minimum-deletions-to-make-string-k-special
3434-find-the-number-of-distinct-colors-among-the-balls
3445-lexicographically-minimum-string-after-removing-stars
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3750-closest-equal-element-queries
3753-maximum-difference-between-even-and-odd-frequency-i
3754-maximum-manhattan-distance-after-k-changes
3788-maximum-unique-subarray-sum-after-deletion

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0010-regular-expression-matching
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0032-longest-valid-parentheses
0044-wildcard-matching
0072-edit-distance
0076-minimum-window-substring
0091-decode-ways
0097-interleaving-string
0126-word-ladder-ii
0127-word-ladder
0131-palindrome-partitioning
0132-palindrome-partitioning-ii
0139-word-break
0151-reverse-words-in-a-string
0205-isomorphic-strings
0214-shortest-palindrome
0224-basic-calculator
0227-basic-calculator-ii
0242-valid-anagram
0297-serialize-and-deserialize-binary-tree
0316-remove-duplicate-letters
0345-reverse-vowels-of-a-string
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0451-sort-characters-by-frequency
0474-ones-and-zeroes
0516-longest-palindromic-subsequence
0556-next-greater-element-iii
0567-permutation-in-string
0583-delete-operation-for-two-strings
0647-palindromic-substrings
0768-partition-labels
0778-reorganize-string
0812-rotate-string
0957-minimum-add-to-make-parentheses-valid
1032-satisfiability-of-equality-equations
1058-lexicographically-smallest-equivalent-string
1078-remove-outermost-parentheses
1128-remove-all-adjacent-duplicates-in-string
1129-longest-string-chain
1159-smallest-subsequence-of-distinct-characters
1170-shortest-common-supersequence
1250-longest-common-subsequence
1304-longest-happy-string
1308-smallest-string-with-swaps
1320-remove-all-adjacent-duplicates-in-string-ii
1371-minimum-remove-to-make-valid-parentheses
1423-maximum-number-of-occurrences-of-a-substring
1437-minimum-insertion-steps-to-make-a-string-palindrome
1460-number-of-substrings-containing-all-three-characters
1508-longest-happy-prefix
1557-check-if-a-string-contains-all-binary-codes-of-size-k
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1632-number-of-good-ways-to-split-a-string
1737-maximum-nesting-depth-of-the-parentheses
1871-palindrome-partitioning-iv
1890-sum-of-beauty-of-all-substrings
1915-check-if-one-string-swap-can-make-strings-equal
1987-substrings-of-size-three-with-distinct-characters
2032-largest-odd-number-in-string
2113-find-the-kth-largest-integer-in-the-array
2140-longest-subsequence-repeated-k-times
2220-find-all-possible-recipes-from-given-supplies
2260-divide-a-string-into-groups-of-size-k
2346-largest-3-same-digit-number-in-string
2456-construct-smallest-number-from-di-string
2520-using-a-robot-to-print-the-lexicographically-smallest-string
2576-minimum-penalty-for-a-shop
2816-lexicographically-smallest-palindrome
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3360-minimum-deletions-to-make-string-k-special
3445-lexicographically-minimum-string-after-removing-stars
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3617-find-the-original-typed-string-i
3618-find-the-original-typed-string-ii
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3683-find-the-lexicographically-largest-string-from-the-box-i
3753-maximum-difference-between-even-and-odd-frequency-i
3754-maximum-manhattan-distance-after-k-changes
3761-maximum-difference-between-even-and-odd-frequency-ii

Counting

0229-majority-element-ii
0451-sort-characters-by-frequency
0594-longest-harmonious-subsequence
0778-reorganize-string
0900-reordered-power-of-2
1364-tuple-with-same-product
1890-sum-of-beauty-of-all-substrings
1915-check-if-one-string-swap-can-make-strings-equal
1987-substrings-of-size-three-with-distinct-characters
2140-longest-subsequence-repeated-k-times
3335-minimum-operations-to-write-the-letter-y-on-a-grid
3360-minimum-deletions-to-make-string-k-special
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3753-maximum-difference-between-even-and-odd-frequency-i
3754-maximum-manhattan-distance-after-k-changes

Simulation

0054-spiral-matrix
0059-spiral-matrix-ii
0498-diagonal-traverse
0735-asteroid-collision
0898-transpose-matrix
1342-queens-that-can-attack-the-king
1386-shift-2d-grid
2048-build-array-from-permutation
2132-convert-1d-array-into-2d-array
2228-watering-plants-ii
2260-divide-a-string-into-groups-of-size-k
2265-partition-array-according-to-given-pivot
2551-apply-operations-to-an-array
3215-matrix-similarity-after-cyclic-shifts
3434-find-the-number-of-distinct-colors-among-the-balls
3600-find-the-k-th-character-in-string-game-i

Design

0146-lru-cache
0155-min-stack
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0789-kth-largest-element-in-a-stream
0931-maximum-frequency-stack
1497-design-a-stack-with-increment-operation
1995-finding-pairs-with-a-certain-sum
2434-design-a-number-container-system

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0295-find-median-from-data-stream
0451-sort-characters-by-frequency
0658-find-k-closest-elements
0744-network-delay-time
0778-reorganize-string
0789-kth-largest-element-in-a-stream
0803-cheapest-flights-within-k-stops
0892-shortest-subarray-with-sum-at-least-k
0948-sort-an-array
1304-longest-happy-string
1325-path-with-maximum-probability
1464-reduce-array-size-to-the-half
1478-maximum-number-of-events-that-can-be-attended
1753-path-with-minimum-effort
1912-number-of-restricted-paths-from-first-to-last-node
2113-find-the-kth-largest-integer-in-the-array
2204-find-subsequence-of-length-k-with-the-largest-sum
2267-minimum-difference-in-sums-after-removal-of-elements
2434-design-a-number-container-system
3209-minimum-number-of-coins-for-fruits
3445-lexicographically-minimum-string-after-removing-stars

Ordered Set

0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0493-reverse-pairs
0931-maximum-frequency-stack
2434-design-a-number-container-system

Dynamic Programming

0005-longest-palindromic-substring
0010-regular-expression-matching
0032-longest-valid-parentheses
0042-trapping-rain-water
0044-wildcard-matching
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0063-unique-paths-ii
0064-minimum-path-sum
0070-climbing-stairs
0072-edit-distance
0091-decode-ways
0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0097-interleaving-string
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0123-best-time-to-buy-and-sell-stock-iii
0124-binary-tree-maximum-path-sum
0131-palindrome-partitioning
0132-palindrome-partitioning-ii
0139-word-break
0152-maximum-product-subarray
0188-best-time-to-buy-and-sell-stock-iv
0198-house-robber
0213-house-robber-ii
0221-maximal-square
0279-perfect-squares
0300-longest-increasing-subsequence
0309-best-time-to-buy-and-sell-stock-with-cooldown
0322-coin-change
0329-longest-increasing-path-in-a-matrix
0368-largest-divisible-subset
0403-frog-jump
0410-split-array-largest-sum
0416-partition-equal-subset-sum
0474-ones-and-zeroes
0486-predict-the-winner
0494-target-sum
0516-longest-palindromic-subsequence
0518-coin-change-ii
0526-beautiful-arrangement
0542-01-matrix
0583-delete-operation-for-two-strings
0646-maximum-length-of-pair-chain
0647-palindromic-substrings
0650-2-keys-keyboard
0673-number-of-longest-increasing-subsequence
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0718-maximum-length-of-repeated-subarray
0747-min-cost-climbing-stairs
0803-cheapest-flights-within-k-stops
0877-shortest-path-visiting-all-nodes
0930-all-possible-full-binary-trees
0934-bitwise-ors-of-subarrays
0943-sum-of-subarray-minimums
1117-as-far-from-land-as-possible
1121-partition-array-for-maximum-sum
1129-longest-string-chain
1170-shortest-common-supersequence
1250-longest-common-subsequence
1290-make-array-strictly-increasing
1367-maximum-height-by-stacking-cuboids
1402-count-square-submatrices-with-all-ones
1437-minimum-insertion-steps-to-make-a-string-palindrome
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1475-maximum-sum-bst-in-binary-tree
1535-build-array-where-you-can-find-the-maximum-exactly-k-comparisons
1586-longest-subarray-of-1s-after-deleting-one-element
1628-count-submatrices-with-all-ones
1632-number-of-good-ways-to-split-a-string
1669-minimum-cost-to-cut-a-stick
1716-maximum-non-negative-product-in-a-matrix
1766-minimum-number-of-removals-to-make-mountain-array
1871-palindrome-partitioning-iv
1912-number-of-restricted-paths-from-first-to-last-node
2022-maximum-alternating-subsequence-sum
2090-number-of-ways-to-arrive-at-destination
2176-parallel-courses-iii
2267-minimum-difference-in-sums-after-removal-of-elements
2409-number-of-increasing-paths-in-a-grid
2504-find-all-good-indices
2696-the-number-of-beautiful-subsets
2882-ways-to-express-an-integer-as-sum-of-powers
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3184-maximum-balanced-subsequence-sum
3209-minimum-number-of-coins-for-fruits
3239-minimum-number-of-operations-to-make-x-and-y-equal
3414-find-number-of-ways-to-reach-the-k-th-stair
3491-find-the-maximum-length-of-valid-subsequence-ii
3618-find-the-original-typed-string-ii
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3733-length-of-longest-v-shaped-diagonal-segment

Backtracking

0037-sudoku-solver
0039-combination-sum
0040-combination-sum-ii
0046-permutations
0051-n-queens
0077-combinations
0078-subsets
0090-subsets-ii
0095-unique-binary-search-trees-ii
0113-path-sum-ii
0126-word-ladder-ii
0131-palindrome-partitioning
0216-combination-sum-iii
0494-target-sum
0526-beautiful-arrangement
2140-longest-subsequence-repeated-k-times
2456-construct-smallest-number-from-di-string
2696-the-number-of-beautiful-subsets

Breadth-First Search

0101-symmetric-tree
0107-binary-tree-level-order-traversal-ii
0111-minimum-depth-of-binary-tree
0112-path-sum
0116-populating-next-right-pointers-in-each-node
0126-word-ladder-ii
0127-word-ladder
0130-surrounded-regions
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0279-perfect-squares
0297-serialize-and-deserialize-binary-tree
0310-minimum-height-trees
0322-coin-change
0329-longest-increasing-path-in-a-matrix
0463-island-perimeter
0542-01-matrix
0547-number-of-provinces
0617-merge-two-binary-trees
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0684-redundant-connection
0695-max-area-of-island
0733-flood-fill
0744-network-delay-time
0799-minimum-distance-between-bst-nodes
0801-is-graph-bipartite
0803-cheapest-flights-within-k-stops
0820-find-eventual-safe-states
0871-keys-and-rooms
0877-shortest-path-visiting-all-nodes
0893-all-nodes-distance-k-in-binary-tree
0922-possible-bipartition
0945-snakes-and-ladders
0971-shortest-bridge
1029-vertical-order-traversal-of-a-binary-tree
1036-rotting-oranges
1073-number-of-enclaves
1117-as-far-from-land-as-possible
1120-flower-planting-with-no-adjacent
1171-shortest-path-in-binary-matrix
1308-smallest-string-with-swaps
1380-number-of-closed-islands
1424-maximum-candies-you-can-get-from-boxes
1428-jump-game-iii
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1442-number-of-operations-to-make-network-connected
1447-jump-game-iv
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
1663-detect-cycles-in-2d-grid
1753-path-with-minimum-effort
1876-map-of-highest-peak
2035-count-sub-islands
2103-find-all-groups-of-farmland
2121-find-if-path-exists-in-graph
2183-minimum-operations-to-convert-number
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph
2409-number-of-increasing-paths-in-a-grid
2439-longest-cycle-in-a-graph
2461-amount-of-time-for-binary-tree-to-be-infected
2582-minimum-score-of-a-path-between-two-cities
2583-divide-nodes-into-the-maximum-number-of-groups
2671-shortest-cycle-in-a-graph
2793-count-the-number-of-complete-components
3239-minimum-number-of-operations-to-make-x-and-y-equal
3271-count-the-number-of-houses-at-a-certain-distance-i
3633-maximize-the-number-of-target-nodes-after-connecting-trees-i
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

Math

0013-roman-to-integer
0062-unique-paths
0070-climbing-stairs
0096-unique-binary-search-trees
0204-count-primes
0224-basic-calculator
0227-basic-calculator-ii
0231-power-of-two
0279-perfect-squares
0326-power-of-three
0342-power-of-four
0368-largest-divisible-subset
0486-predict-the-winner
0556-next-greater-element-iii
0650-2-keys-keyboard
0668-kth-smallest-number-in-multiplication-table
0670-maximum-swap
0900-reordered-power-of-2
1370-count-number-of-nice-subarrays
1448-maximum-69-number
1529-max-difference-you-can-get-from-changing-an-integer
1610-xor-operation-in-an-array
1787-sum-of-absolute-differences-in-a-sorted-array
1929-maximum-value-at-a-given-index-in-a-bounded-array
2032-largest-odd-number-in-string
2202-sum-of-k-mirror-numbers
2432-number-of-zero-filled-subarrays
2696-the-number-of-beautiful-subsets
2704-maximum-difference-by-remapping-a-digit
2998-count-symmetric-integers
3201-distribute-candies-among-children-ii
3215-matrix-similarity-after-cyclic-shifts
3414-find-number-of-ways-to-reach-the-k-th-stair
3600-find-the-k-th-character-in-string-game-i
3601-find-the-k-th-character-in-string-game-ii
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3682-count-the-number-of-arrays-with-k-matching-adjacent-elements
3754-maximum-manhattan-distance-after-k-changes

Bit Manipulation

0078-subsets
0090-subsets-ii
0137-single-number-ii
0222-count-complete-tree-nodes
0231-power-of-two
0260-single-number-iii
0287-find-the-duplicate-number
0342-power-of-four
0526-beautiful-arrangement
0877-shortest-path-visiting-all-nodes
0934-bitwise-ors-of-subarrays
1557-check-if-a-string-contains-all-binary-codes-of-size-k
1610-xor-operation-in-an-array
1632-number-of-good-ways-to-split-a-string
2323-minimum-bit-flips-to-convert-number
2478-longest-nice-subarray
2529-range-product-queries-of-powers
3414-find-number-of-ways-to-reach-the-k-th-stair
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3600-find-the-k-th-character-in-string-game-i
3601-find-the-k-th-character-in-string-game-ii

Sliding Window

0003-longest-substring-without-repeating-characters
0076-minimum-window-substring
0209-minimum-size-subarray-sum
0239-sliding-window-maximum
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0567-permutation-in-string
0594-longest-harmonious-subsequence
0643-maximum-average-subarray-i
0658-find-k-closest-elements
0718-maximum-length-of-repeated-subarray
0892-shortest-subarray-with-sum-at-least-k
0940-fruit-into-baskets
0966-binary-subarrays-with-sum
1046-max-consecutive-ones-iii
1370-count-number-of-nice-subarrays
1423-maximum-number-of-occurrences-of-a-substring
1445-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold
1460-number-of-substrings-containing-all-three-characters
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element
1987-substrings-of-size-three-with-distinct-characters
2478-longest-nice-subarray
2552-maximum-sum-of-distinct-subarrays-with-length-k
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3761-maximum-difference-between-even-and-odd-frequency-ii

Queue

0239-sliding-window-maximum
0892-shortest-subarray-with-sum-at-least-k
3209-minimum-number-of-coins-for-fruits
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0410-split-array-largest-sum
0560-subarray-sum-equals-k
0892-shortest-subarray-with-sum-at-least-k
0966-binary-subarrays-with-sum
1046-max-consecutive-ones-iii
1370-count-number-of-nice-subarrays
1535-build-array-where-you-can-find-the-maximum-exactly-k-comparisons
1787-sum-of-absolute-differences-in-a-sorted-array
2290-removing-minimum-number-of-magic-beans
2504-find-all-good-indices
2529-range-product-queries-of-powers
2576-minimum-penalty-for-a-shop
2714-left-and-right-sum-differences
3271-count-the-number-of-houses-at-a-certain-distance-i
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3618-find-the-original-typed-string-ii
3761-maximum-difference-between-even-and-odd-frequency-ii

Greedy

0044-wildcard-matching
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0135-candy
0316-remove-duplicate-letters
0410-split-array-largest-sum
0646-maximum-length-of-pair-chain
0670-maximum-swap
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0768-partition-labels
0778-reorganize-string
0825-max-increase-to-keep-city-skyline
0853-most-profit-assigning-work
0957-minimum-add-to-make-parentheses-valid
1159-smallest-subsequence-of-distinct-characters
1285-balance-a-binary-search-tree
1304-longest-happy-string
1448-maximum-69-number
1464-reduce-array-size-to-the-half
1478-maximum-number-of-events-that-can-be-attended
1529-max-difference-you-can-get-from-changing-an-integer
1711-find-valid-matrix-given-row-and-column-sums
1766-minimum-number-of-removals-to-make-mountain-array
1929-maximum-value-at-a-given-index-in-a-bounded-array
2032-largest-odd-number-in-string
2140-longest-subsequence-repeated-k-times
2290-removing-minimum-number-of-magic-beans
2387-partition-array-such-that-maximum-difference-is-k
2456-construct-smallest-number-from-di-string
2520-using-a-robot-to-print-the-lexicographically-smallest-string
2704-maximum-difference-by-remapping-a-digit
2720-minimize-the-maximum-difference-of-pairs
2816-lexicographically-smallest-palindrome
3143-longest-unequal-adjacent-groups-subsequence-i
3171-minimum-equal-sum-of-two-arrays-after-replacing-zeros
3241-divide-array-into-arrays-with-max-difference
3360-minimum-deletions-to-make-string-k-special
3445-lexicographically-minimum-string-after-removing-stars
3788-maximum-unique-subarray-sum-after-deletion

Binary Search

0004-median-of-two-sorted-arrays
0154-find-minimum-in-rotated-sorted-array-ii
0209-minimum-size-subarray-sum
0222-count-complete-tree-nodes
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0410-split-array-largest-sum
0493-reverse-pairs
0658-find-k-closest-elements
0668-kth-smallest-number-in-multiplication-table
0718-maximum-length-of-repeated-subarray
0719-find-k-th-smallest-pair-distance
0853-most-profit-assigning-work
0882-peak-index-in-a-mountain-array
0892-shortest-subarray-with-sum-at-least-k
0907-koko-eating-bananas
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1185-find-in-mountain-array
1290-make-array-strictly-increasing
1335-maximum-candies-allocated-to-k-children
1408-find-the-smallest-divisor-given-a-threshold
1605-minimum-number-of-days-to-make-m-bouquets
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1646-kth-missing-positive-number
1753-path-with-minimum-effort
1766-minimum-number-of-removals-to-make-mountain-array
1929-maximum-value-at-a-given-index-in-a-bounded-array
2150-kth-smallest-product-of-two-sorted-arrays
2720-minimize-the-maximum-difference-of-pairs
3184-maximum-balanced-subsequence-sum
3750-closest-equal-element-queries

Stack

0020-valid-parentheses
0032-longest-valid-parentheses
0042-trapping-rain-water
0114-flatten-binary-tree-to-linked-list
0155-min-stack
0224-basic-calculator
0227-basic-calculator-ii
0234-palindrome-linked-list
0316-remove-duplicate-letters
0496-next-greater-element-i
0503-next-greater-element-ii
0735-asteroid-collision
0739-daily-temperatures
0931-maximum-frequency-stack
0933-increasing-order-search-tree
0943-sum-of-subarray-minimums
0957-minimum-add-to-make-parentheses-valid
1050-construct-binary-search-tree-from-preorder-traversal
1078-remove-outermost-parentheses
1128-remove-all-adjacent-duplicates-in-string
1159-smallest-subsequence-of-distinct-characters
1320-remove-all-adjacent-duplicates-in-string-ii
1371-minimum-remove-to-make-valid-parentheses
1497-design-a-stack-with-increment-operation
1628-count-submatrices-with-all-ones
1737-maximum-nesting-depth-of-the-parentheses
2227-sum-of-subarray-ranges
2456-construct-smallest-number-from-di-string
2520-using-a-robot-to-print-the-lexicographically-smallest-string
3445-lexicographically-minimum-string-after-removing-stars

Monotonic Stack

0042-trapping-rain-water
0316-remove-duplicate-letters
0496-next-greater-element-i
0503-next-greater-element-ii
0739-daily-temperatures
0943-sum-of-subarray-minimums
1050-construct-binary-search-tree-from-preorder-traversal
1159-smallest-subsequence-of-distinct-characters
1628-count-submatrices-with-all-ones
2227-sum-of-subarray-ranges

Two Pointers

0005-longest-palindromic-substring
0015-3sum
0016-3sum-closest
0019-remove-nth-node-from-end-of-list
0028-find-the-index-of-the-first-occurrence-in-a-string
0042-trapping-rain-water
0061-rotate-list
0075-sort-colors
0088-merge-sorted-array
0141-linked-list-cycle
0148-sort-list
0151-reverse-words-in-a-string
0234-palindrome-linked-list
0287-find-the-duplicate-number
0295-find-median-from-data-stream
0345-reverse-vowels-of-a-string
0556-next-greater-element-iii
0567-permutation-in-string
0647-palindromic-substrings
0653-two-sum-iv-input-is-a-bst
0658-find-k-closest-elements
0719-find-k-th-smallest-pair-distance
0768-partition-labels
0853-most-profit-assigning-work
0941-sort-array-by-parity
0958-sort-array-by-parity-ii
1129-longest-string-chain
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1972-rotating-the-box
2228-watering-plants-ii
2265-partition-array-according-to-given-pivot
2320-find-all-k-distant-indices-in-an-array
2551-apply-operations-to-an-array
2707-merge-two-2d-arrays-by-summing-values
2816-lexicographically-smallest-palindrome
3683-find-the-lexicographically-largest-string-from-the-box-i

Enumeration

0204-count-primes
0900-reordered-power-of-2
2140-longest-subsequence-repeated-k-times
2202-sum-of-k-mirror-numbers
2215-finding-3-digit-even-numbers
2290-removing-minimum-number-of-magic-beans
2998-count-symmetric-integers
3201-distribute-candies-among-children-ii
3683-find-the-lexicographically-largest-string-from-the-box-i
3761-maximum-difference-between-even-and-odd-frequency-ii

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0109-convert-sorted-list-to-binary-search-tree
0148-sort-list
0215-kth-largest-element-in-an-array
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0493-reverse-pairs
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0948-sort-an-array
1285-balance-a-binary-search-tree
2113-find-the-kth-largest-integer-in-the-array

Binary Indexed Tree

0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0493-reverse-pairs
0673-number-of-longest-increasing-subsequence
3184-maximum-balanced-subsequence-sum

Segment Tree

0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0493-reverse-pairs
0673-number-of-longest-increasing-subsequence
3184-maximum-balanced-subsequence-sum

Merge Sort

0023-merge-k-sorted-lists
0148-sort-list
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0493-reverse-pairs
0948-sort-an-array

Sorting

0015-3sum
0016-3sum-closest
0075-sort-colors
0088-merge-sorted-array
0148-sort-list
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0242-valid-anagram
0295-find-median-from-data-stream
0368-largest-divisible-subset
0451-sort-characters-by-frequency
0594-longest-harmonious-subsequence
0646-maximum-length-of-pair-chain
0658-find-k-closest-elements
0719-find-k-th-smallest-pair-distance
0778-reorganize-string
0853-most-profit-assigning-work
0900-reordered-power-of-2
0941-sort-array-by-parity
0948-sort-an-array
0958-sort-array-by-parity-ii
1029-vertical-order-traversal-of-a-binary-tree
1129-longest-string-chain
1253-sort-the-matrix-diagonally
1290-make-array-strictly-increasing
1308-smallest-string-with-swaps
1367-maximum-height-by-stacking-cuboids
1427-all-elements-in-two-binary-search-trees
1464-reduce-array-size-to-the-half
1478-maximum-number-of-events-that-can-be-attended
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1669-minimum-cost-to-cut-a-stick
2113-find-the-kth-largest-integer-in-the-array
2204-find-subsequence-of-length-k-with-the-largest-sum
2215-finding-3-digit-even-numbers
2290-removing-minimum-number-of-magic-beans
2387-partition-array-such-that-maximum-difference-is-k
2696-the-number-of-beautiful-subsets
3241-divide-array-into-arrays-with-max-difference
3360-minimum-deletions-to-make-string-k-special
3748-sort-matrix-by-diagonals

Bitmask

0526-beautiful-arrangement
0877-shortest-path-visiting-all-nodes

Tree

0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0098-validate-binary-search-tree
0099-recover-binary-search-tree
0101-symmetric-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0107-binary-tree-level-order-traversal-ii
0109-convert-sorted-list-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0129-sum-root-to-leaf-numbers
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0437-path-sum-iii
0450-delete-node-in-a-bst
0501-find-mode-in-binary-search-tree
0538-convert-bst-to-greater-tree
0572-subtree-of-another-tree
0617-merge-two-binary-trees
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0669-trim-a-binary-search-tree
0789-kth-largest-element-in-a-stream
0799-minimum-distance-between-bst-nodes
0893-all-nodes-distance-k-in-binary-tree
0904-leaf-similar-trees
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0930-all-possible-full-binary-trees
0933-increasing-order-search-tree
0975-range-sum-of-bst
1029-vertical-order-traversal-of-a-binary-tree
1050-construct-binary-search-tree-from-preorder-traversal
1207-delete-nodes-and-return-forest
1285-balance-a-binary-search-tree
1427-all-elements-in-two-binary-search-trees
1475-maximum-sum-bst-in-binary-tree
2461-amount-of-time-for-binary-tree-to-be-infected
3633-maximize-the-number-of-target-nodes-after-connecting-trees-i
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

Depth-First Search

0098-validate-binary-search-tree
0099-recover-binary-search-tree
0101-symmetric-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0129-sum-root-to-leaf-numbers
0130-surrounded-regions
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix
0386-lexicographical-numbers
0419-battleships-in-a-board
0437-path-sum-iii
0463-island-perimeter
0501-find-mode-in-binary-search-tree
0538-convert-bst-to-greater-tree
0547-number-of-provinces
0572-subtree-of-another-tree
0617-merge-two-binary-trees
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0669-trim-a-binary-search-tree
0684-redundant-connection
0695-max-area-of-island
0733-flood-fill
0744-network-delay-time
0799-minimum-distance-between-bst-nodes
0801-is-graph-bipartite
0803-cheapest-flights-within-k-stops
0820-find-eventual-safe-states
0871-keys-and-rooms
0881-loud-and-rich
0893-all-nodes-distance-k-in-binary-tree
0904-leaf-similar-trees
0922-possible-bipartition
0933-increasing-order-search-tree
0971-shortest-bridge
0975-range-sum-of-bst
0984-most-stones-removed-with-same-row-or-column
1029-vertical-order-traversal-of-a-binary-tree
1073-number-of-enclaves
1120-flower-planting-with-no-adjacent
1207-delete-nodes-and-return-forest
1285-balance-a-binary-search-tree
1308-smallest-string-with-swaps
1380-number-of-closed-islands
1427-all-elements-in-two-binary-search-trees
1428-jump-game-iii
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1442-number-of-operations-to-make-network-connected
1475-maximum-sum-bst-in-binary-tree
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
1663-detect-cycles-in-2d-grid
1753-path-with-minimum-effort
2035-count-sub-islands
2103-find-all-groups-of-farmland
2121-find-if-path-exists-in-graph
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph
2409-number-of-increasing-paths-in-a-grid
2439-longest-cycle-in-a-graph
2461-amount-of-time-for-binary-tree-to-be-infected
2582-minimum-score-of-a-path-between-two-cities
2583-divide-nodes-into-the-maximum-number-of-groups
2793-count-the-number-of-complete-components
3633-maximize-the-number-of-target-nodes-after-connecting-trees-i
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

Binary Tree

0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0098-validate-binary-search-tree
0099-recover-binary-search-tree
0101-symmetric-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0107-binary-tree-level-order-traversal-ii
0109-convert-sorted-list-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0113-path-sum-ii
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0129-sum-root-to-leaf-numbers
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0437-path-sum-iii
0450-delete-node-in-a-bst
0501-find-mode-in-binary-search-tree
0538-convert-bst-to-greater-tree
0572-subtree-of-another-tree
0617-merge-two-binary-trees
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0669-trim-a-binary-search-tree
0789-kth-largest-element-in-a-stream
0799-minimum-distance-between-bst-nodes
0893-all-nodes-distance-k-in-binary-tree
0904-leaf-similar-trees
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0930-all-possible-full-binary-trees
0933-increasing-order-search-tree
0975-range-sum-of-bst
1029-vertical-order-traversal-of-a-binary-tree
1050-construct-binary-search-tree-from-preorder-traversal
1207-delete-nodes-and-return-forest
1285-balance-a-binary-search-tree
1427-all-elements-in-two-binary-search-trees
1475-maximum-sum-bst-in-binary-tree
2461-amount-of-time-for-binary-tree-to-be-infected

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
0572-subtree-of-another-tree
0812-rotate-string
1508-longest-happy-prefix

Hash Function

0214-shortest-palindrome
0572-subtree-of-another-tree
0718-maximum-length-of-repeated-subarray
1508-longest-happy-prefix
1557-check-if-a-string-contains-all-binary-codes-of-size-k

Binary Search Tree

0095-unique-binary-search-trees-ii
0096-unique-binary-search-trees
0098-validate-binary-search-tree
0099-recover-binary-search-tree
0109-convert-sorted-list-to-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0501-find-mode-in-binary-search-tree
0538-convert-bst-to-greater-tree
0653-two-sum-iv-input-is-a-bst
0669-trim-a-binary-search-tree
0789-kth-largest-element-in-a-stream
0799-minimum-distance-between-bst-nodes
0933-increasing-order-search-tree
0975-range-sum-of-bst
1050-construct-binary-search-tree-from-preorder-traversal
1285-balance-a-binary-search-tree
1427-all-elements-in-two-binary-search-trees
1475-maximum-sum-bst-in-binary-tree

Union Find

0130-surrounded-regions
0200-number-of-islands
0547-number-of-provinces
0684-redundant-connection
0695-max-area-of-island
0801-is-graph-bipartite
0922-possible-bipartition
0984-most-stones-removed-with-same-row-or-column
1032-satisfiability-of-equality-equations
1058-lexicographically-smallest-equivalent-string
1073-number-of-enclaves
1308-smallest-string-with-swaps
1380-number-of-closed-islands
1442-number-of-operations-to-make-network-connected
1663-detect-cycles-in-2d-grid
1706-min-cost-to-connect-all-points
1753-path-with-minimum-effort
2035-count-sub-islands
2121-find-if-path-exists-in-graph
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph
2582-minimum-score-of-a-path-between-two-cities
2583-divide-nodes-into-the-maximum-number-of-groups
2793-count-the-number-of-complete-components

Graph

0207-course-schedule
0210-course-schedule-ii
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix
0547-number-of-provinces
0684-redundant-connection
0744-network-delay-time
0801-is-graph-bipartite
0803-cheapest-flights-within-k-stops
0820-find-eventual-safe-states
0871-keys-and-rooms
0877-shortest-path-visiting-all-nodes
0881-loud-and-rich
0922-possible-bipartition
0984-most-stones-removed-with-same-row-or-column
1032-satisfiability-of-equality-equations
1120-flower-planting-with-no-adjacent
1325-path-with-maximum-probability
1424-maximum-candies-you-can-get-from-boxes
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1442-number-of-operations-to-make-network-connected
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1576-reorder-routes-to-make-all-paths-lead-to-the-city-zero
1706-min-cost-to-connect-all-points
1912-number-of-restricted-paths-from-first-to-last-node
2090-number-of-ways-to-arrive-at-destination
2121-find-if-path-exists-in-graph
2176-parallel-courses-iii
2220-find-all-possible-recipes-from-given-supplies
2403-count-unreachable-pairs-of-nodes-in-an-undirected-graph
2409-number-of-increasing-paths-in-a-grid
2439-longest-cycle-in-a-graph
2582-minimum-score-of-a-path-between-two-cities
2583-divide-nodes-into-the-maximum-number-of-groups
2671-shortest-cycle-in-a-graph
2793-count-the-number-of-complete-components
3271-count-the-number-of-houses-at-a-certain-distance-i

Matrix

0036-valid-sudoku
0037-sudoku-solver
0054-spiral-matrix
0059-spiral-matrix-ii
0063-unique-paths-ii
0064-minimum-path-sum
0130-surrounded-regions
0200-number-of-islands
0221-maximal-square
0329-longest-increasing-path-in-a-matrix
0419-battleships-in-a-board
0463-island-perimeter
0498-diagonal-traverse
0542-01-matrix
0695-max-area-of-island
0733-flood-fill
0825-max-increase-to-keep-city-skyline
0898-transpose-matrix
0945-snakes-and-ladders
0971-shortest-bridge
1036-rotting-oranges
1073-number-of-enclaves
1117-as-far-from-land-as-possible
1171-shortest-path-in-binary-matrix
1253-sort-the-matrix-diagonally
1342-queens-that-can-attack-the-king
1380-number-of-closed-islands
1386-shift-2d-grid
1402-count-square-submatrices-with-all-ones
1496-lucky-numbers-in-a-matrix
1628-count-submatrices-with-all-ones
1663-detect-cycles-in-2d-grid
1711-find-valid-matrix-given-row-and-column-sums
1716-maximum-non-negative-product-in-a-matrix
1753-path-with-minimum-effort
1876-map-of-highest-peak
1972-rotating-the-box
2035-count-sub-islands
2103-find-all-groups-of-farmland
2132-convert-1d-array-into-2d-array
2398-check-if-matrix-is-x-matrix
2409-number-of-increasing-paths-in-a-grid
3215-matrix-similarity-after-cyclic-shifts
3330-modify-the-matrix
3335-minimum-operations-to-write-the-letter-y-on-a-grid
3461-find-the-minimum-area-to-cover-all-ones-i
3733-length-of-longest-v-shaped-diagonal-segment
3748-sort-matrix-by-diagonals

Topological Sort

0207-course-schedule
0210-course-schedule-ii
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix
0820-find-eventual-safe-states
0881-loud-and-rich
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1912-number-of-restricted-paths-from-first-to-last-node
2090-number-of-ways-to-arrive-at-destination
2176-parallel-courses-iii
2220-find-all-possible-recipes-from-given-supplies
2409-number-of-increasing-paths-in-a-grid
2439-longest-cycle-in-a-graph

Shortest Path

0744-network-delay-time
0803-cheapest-flights-within-k-stops
1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1912-number-of-restricted-paths-from-first-to-last-node
2090-number-of-ways-to-arrive-at-destination

Bucket Sort

0451-sort-characters-by-frequency
0948-sort-an-array

Quickselect

0215-kth-largest-element-in-an-array
2113-find-the-kth-largest-integer-in-the-array

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream

Memoization

0070-climbing-stairs
0139-word-break
0329-longest-increasing-path-in-a-matrix
0930-all-possible-full-binary-trees
2409-number-of-increasing-paths-in-a-grid
3239-minimum-number-of-operations-to-make-x-and-y-equal
3414-find-number-of-ways-to-reach-the-k-th-stair
3733-length-of-longest-v-shaped-diagonal-segment

Combinatorics

0062-unique-paths
2696-the-number-of-beautiful-subsets
3201-distribute-candies-among-children-ii
3414-find-number-of-ways-to-reach-the-k-th-stair
3682-count-the-number-of-arrays-with-k-matching-adjacent-elements

Monotonic Queue

0239-sliding-window-maximum
0892-shortest-subarray-with-sum-at-least-k
3209-minimum-number-of-coins-for-fruits

Trie

0014-longest-common-prefix
0139-word-break
0386-lexicographical-numbers
0440-k-th-smallest-in-lexicographical-order

Interactive

1185-find-in-mountain-array

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0109-convert-sorted-list-to-binary-search-tree
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0141-linked-list-cycle
0146-lru-cache
0148-sort-list
0234-palindrome-linked-list

Recursion

0010-regular-expression-matching
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0044-wildcard-matching
0224-basic-calculator
0231-power-of-two
0234-palindrome-linked-list
0326-power-of-three
0342-power-of-four
0486-predict-the-winner
0930-all-possible-full-binary-trees
3600-find-the-k-th-character-in-string-game-i
3601-find-the-k-th-character-in-string-game-ii

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Minimum Spanning Tree

1706-min-cost-to-connect-all-points

Rolling Hash

0214-shortest-palindrome
0718-maximum-length-of-repeated-subarray
1508-longest-happy-prefix
1557-check-if-a-string-contains-all-binary-codes-of-size-k

Number Theory

0204-count-primes

Database

0175-combine-two-tables
0176-second-highest-salary
0177-nth-highest-salary
0178-rank-scores
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0184-department-highest-salary
0185-department-top-three-salaries
0196-delete-duplicate-emails
0197-rising-temperature

Doubly-Linked List

0146-lru-cache

Game Theory

0486-predict-the-winner

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published