Skip to content

lasya-14/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Depth-First Search

0079-word-search
0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0130-surrounded-regions
0133-clone-graph
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0230-kth-smallest-element-in-a-bst
0257-binary-tree-paths
0386-lexicographical-numbers
0515-find-largest-value-in-each-tree-row
0538-convert-bst-to-greater-tree
0547-number-of-provinces
0684-redundant-connection
0820-find-eventual-safe-states
0854-making-a-large-island
0988-flip-equivalent-binary-trees
1350-remove-sub-folders-from-the-filesystem
1387-find-elements-in-a-contaminated-binary-tree
1396-count-servers-that-communicate
1558-course-schedule-iv
2121-find-if-path-exists-in-graph
2201-valid-arrangement-of-pairs
2246-maximum-employees-to-be-invited-to-a-meeting
2493-reverse-odd-levels-of-binary-tree
2545-height-of-binary-tree-after-subtree-removal-queries
2564-most-profitable-path-in-a-tree
2677-cousins-in-binary-tree-ii
2793-count-the-number-of-complete-components
3439-find-minimum-diameter-after-merging-two-trees

Trie

0014-longest-common-prefix
0208-implement-trie-prefix-tree
0386-lexicographical-numbers
0440-k-th-smallest-in-lexicographical-order
1350-remove-sub-folders-from-the-filesystem
2494-sum-of-prefix-scores-of-strings
2755-extra-characters-in-a-string
3309-count-prefix-and-suffix-pairs-i
3329-find-the-length-of-the-longest-common-prefix

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0027-remove-element
0031-next-permutation
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0042-trapping-rain-water
0046-permutations
0049-group-anagrams
0051-n-queens
0053-maximum-subarray
0055-jump-game
0066-plus-one
0074-search-a-2d-matrix
0075-sort-colors
0078-subsets
0079-word-search
0081-search-in-rotated-sorted-array-ii
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0088-merge-sorted-array
0090-subsets-ii
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0130-surrounded-regions
0136-single-number
0137-single-number-ii
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0169-majority-element
0174-dungeon-game
0189-rotate-array
0204-count-primes
0217-contains-duplicate
0229-majority-element-ii
0240-search-a-2d-matrix-ii
0260-single-number-iii
0268-missing-number
0283-move-zeroes
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0303-range-sum-query-immutable
0312-burst-balloons
0318-maximum-product-of-word-lengths
0322-coin-change
0347-top-k-frequent-elements
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0368-largest-divisible-subset
0407-trapping-rain-water-ii
0414-third-maximum-number
0416-partition-equal-subset-sum
0448-find-all-numbers-disappeared-in-an-array
0485-max-consecutive-ones
0494-target-sum
0495-teemo-attacking
0496-next-greater-element-i
0500-keyboard-row
0503-next-greater-element-ii
0506-relative-ranks
0518-coin-change-ii
0540-single-element-in-a-sorted-array
0594-longest-harmonious-subsequence
0632-smallest-range-covering-elements-from-k-lists
0645-set-mismatch
0673-number-of-longest-increasing-subsequence
0689-maximum-sum-of-3-non-overlapping-subarrays
0724-find-pivot-index
0729-my-calendar-i
0731-my-calendar-ii
0745-find-smallest-letter-greater-than-target
0780-max-chunks-to-make-sorted
0787-sliding-puzzle
0792-binary-search
0828-chalkboard-xor-game
0854-making-a-large-island
0859-design-circular-deque
0892-shortest-subarray-with-sum-at-least-k
0905-length-of-longest-fibonacci-subsequence
0924-fair-candy-swap
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0934-bitwise-ors-of-subarrays
1002-maximum-width-ramp
1006-vowel-spellchecker
1022-unique-paths-iii
1025-minimum-cost-for-tickets
1039-find-the-town-judge
1063-best-sightseeing-pair
1147-flip-columns-for-maximum-number-of-equal-rows
1231-replace-elements-with-greatest-element-on-right-side
1256-rank-transform-of-an-array
1293-three-consecutive-odds
1335-maximum-candies-allocated-to-k-children
1350-remove-sub-folders-from-the-filesystem
1364-tuple-with-same-product
1396-count-servers-that-communicate
1402-count-square-submatrices-with-all-ones
1426-find-n-unique-integers-sum-up-to-zero
1468-check-if-n-and-its-double-exist
1477-product-of-the-last-k-numbers
1478-maximum-number-of-events-that-can-be-attended
1482-how-many-numbers-are-smaller-than-the-current-number
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1497-design-a-stack-with-increment-operation
1510-find-lucky-integer-in-an-array
1524-string-matching-in-an-array
1570-final-prices-with-a-special-discount-in-a-shop
1620-check-if-array-pairs-are-divisible-by-k
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1631-number-of-sub-arrays-with-odd-sum
1635-number-of-good-pairs
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1694-make-sum-divisible-by-p
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1755-defuse-the-bomb
1766-minimum-number-of-removals-to-make-mountain-array
1813-maximum-erasure-value
1819-construct-the-lexicographically-largest-valid-sequence
1849-maximum-absolute-sum-of-any-subarray
1876-map-of-highest-peak
1878-check-if-array-is-sorted-and-rotated
1886-minimum-limit-of-balls-in-a-bag
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
1917-maximum-average-pass-ratio
1923-sentence-similarity-iii
1927-maximum-ascending-subarray-sum
1972-rotating-the-box
1993-sum-of-all-subset-xor-totals
1995-finding-pairs-with-a-certain-sum
2038-nearest-exit-from-entrance-in-maze
2042-maximum-product-difference-between-two-pairs
2048-build-array-from-permutation
2054-the-number-of-the-smallest-unoccupied-chair
2058-concatenation-of-array
2089-maximum-matrix-sum
2107-find-unique-binary-string
2137-final-value-of-variable-after-performing-operations
2144-maximum-difference-between-increasing-elements
2145-grid-game
2160-minimum-operations-to-make-a-uni-value-grid
2164-two-best-non-overlapping-events
2170-count-number-of-maximum-bitwise-or-subsets
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2199-two-furthest-houses-with-different-colors
2204-find-subsequence-of-length-k-with-the-largest-sum
2219-maximum-number-of-words-found-in-sentences
2220-find-all-possible-recipes-from-given-supplies
2232-adding-spaces-to-a-string
2262-solving-questions-with-brainpower
2265-partition-array-according-to-given-pivot
2271-rearrange-array-elements-by-sign
2292-counting-words-with-a-given-prefix
2308-divide-array-into-equal-pairs
2316-count-hills-and-valleys-in-an-array
2343-count-unguarded-cells-in-the-grid
2358-number-of-ways-to-split-array
2375-minimum-obstacle-removal-to-reach-corner
2387-partition-array-such-that-maximum-difference-is-k
2448-count-number-of-bad-pairs
2465-shifting-letters-ii
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2478-longest-nice-subarray
2488-divide-intervals-into-minimum-number-of-groups
2494-sum-of-prefix-scores-of-strings
2497-maximum-matching-of-players-with-trainers
2498-smallest-subarrays-with-maximum-bitwise-or
2529-range-product-queries-of-powers
2533-bitwise-xor-of-all-pairings
2545-height-of-binary-tree-after-subtree-removal-queries
2551-apply-operations-to-an-array
2552-maximum-sum-of-distinct-subarrays-with-length-k
2564-most-profitable-path-in-a-tree
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2588-maximum-number-of-points-from-grid-queries
2614-maximum-count-of-positive-integer-and-negative-integer
2616-maximal-score-after-applying-k-operations
2640-maximum-number-of-integers-to-choose-from-a-range-i
2681-put-marbles-in-bags
2690-house-robber-iv
2691-count-vowel-strings-in-ranges
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2707-merge-two-2d-arrays-by-summing-values
2711-minimum-time-to-visit-a-cell-in-a-grid
2755-extra-characters-in-a-string
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
2794-maximum-number-of-moves-in-a-grid
2856-count-complete-subarrays-in-an-array
2868-continuous-subarrays
2888-minimum-index-of-a-valid-split
2891-maximum-beauty-of-an-array-after-applying-operation
3001-apply-operations-to-maximize-score
3152-maximum-value-of-an-ordered-triplet-ii
3154-maximum-value-of-an-ordered-triplet-i
3219-make-lexicographically-smallest-array-by-swapping-elements
3227-find-missing-and-repeated-values
3241-divide-array-into-arrays-with-max-difference
3291-find-if-array-can-be-sorted
3309-count-prefix-and-suffix-pairs-i
3321-type-of-triangle
3329-find-the-length-of-the-longest-common-prefix
3332-minimum-operations-to-exceed-threshold-value-ii
3348-minimum-cost-walk-in-weighted-graph
3372-longest-strictly-increasing-or-strictly-decreasing-subarray
3380-shortest-subarray-with-or-at-least-k-ii
3427-special-array-ii
3429-special-array-i
3430-count-days-without-meetings
3434-find-the-number-of-distinct-colors-among-the-balls
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3490-find-the-maximum-length-of-valid-subsequence-i
3491-find-the-maximum-length-of-valid-subsequence-ii
3517-shortest-distance-after-road-addition-queries-i
3522-find-the-power-of-k-size-subarrays-i
3555-final-array-state-after-k-multiplication-operations-i
3621-minimum-operations-to-make-array-values-equal-to-k
3643-zero-array-transformation-ii
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3657-check-if-grid-can-be-cut-into-sections
3741-reschedule-meetings-for-maximum-free-time-ii
3743-reschedule-meetings-for-maximum-free-time-i
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0049-group-anagrams
0127-word-ladder
0133-clone-graph
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0169-majority-element
0205-isomorphic-strings
0208-implement-trie-prefix-tree
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0387-first-unique-character-in-a-string
0389-find-the-difference
0432-all-oone-data-structure
0448-find-all-numbers-disappeared-in-an-array
0451-sort-characters-by-frequency
0496-next-greater-element-i
0500-keyboard-row
0567-permutation-in-string
0594-longest-harmonious-subsequence
0632-smallest-range-covering-elements-from-k-lists
0645-set-mismatch
0768-partition-labels
0782-jewels-and-stones
0900-reordered-power-of-2
0905-length-of-longest-fibonacci-subsequence
0924-fair-candy-swap
0925-construct-binary-tree-from-preorder-and-postorder-traversal
1006-vowel-spellchecker
1039-find-the-town-judge
1147-flip-columns-for-maximum-number-of-equal-rows
1160-letter-tile-possibilities
1256-rank-transform-of-an-array
1364-tuple-with-same-product
1387-find-elements-in-a-contaminated-binary-tree
1460-number-of-substrings-containing-all-three-characters
1468-check-if-n-and-its-double-exist
1482-how-many-numbers-are-smaller-than-the-current-number
1510-find-lucky-integer-in-an-array
1620-check-if-array-pairs-are-divisible-by-k
1635-number-of-good-pairs
1694-make-sum-divisible-by-p
1715-split-a-string-into-the-max-number-of-unique-substrings
1813-maximum-erasure-value
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
2054-the-number-of-the-smallest-unoccupied-chair
2107-find-unique-binary-string
2204-find-subsequence-of-length-k-with-the-largest-sum
2220-find-all-possible-recipes-from-given-supplies
2300-construct-string-with-repeat-limit
2308-divide-array-into-equal-pairs
2406-decode-the-message
2434-design-a-number-container-system
2448-count-number-of-bad-pairs
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2552-maximum-sum-of-distinct-subarrays-with-length-k
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2599-take-k-of-each-character-from-left-and-right
2640-maximum-number-of-integers-to-choose-from-a-range-i
2677-cousins-in-binary-tree-ii
2695-find-score-of-an-array-after-marking-all-elements
2707-merge-two-2d-arrays-by-summing-values
2755-extra-characters-in-a-string
2766-find-the-prefix-common-array-of-two-arrays
2856-count-complete-subarrays-in-an-array
2888-minimum-index-of-a-valid-split
3227-find-missing-and-repeated-values
3267-find-longest-special-substring-that-occurs-thrice-i
3329-find-the-length-of-the-longest-common-prefix
3360-minimum-deletions-to-make-string-k-special
3434-find-the-number-of-distinct-colors-among-the-balls
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3621-minimum-operations-to-make-array-values-equal-to-k
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3754-maximum-manhattan-distance-after-k-changes

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0006-zigzag-conversion
0008-string-to-integer-atoi
0010-regular-expression-matching
0012-integer-to-roman
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
0049-group-anagrams
0058-length-of-last-word
0067-add-binary
0071-simplify-path
0072-edit-distance
0079-word-search
0125-valid-palindrome
0127-word-ladder
0151-reverse-words-in-a-string
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0205-isomorphic-strings
0208-implement-trie-prefix-tree
0242-valid-anagram
0257-binary-tree-paths
0316-remove-duplicate-letters
0318-maximum-product-of-word-lengths
0344-reverse-string
0345-reverse-vowels-of-a-string
0387-first-unique-character-in-a-string
0389-find-the-difference
0412-fizz-buzz
0451-sort-characters-by-frequency
0459-repeated-substring-pattern
0500-keyboard-row
0516-longest-palindromic-subsequence
0541-reverse-string-ii
0557-reverse-words-in-a-string-iii
0567-permutation-in-string
0678-valid-parenthesis-string
0680-valid-palindrome-ii
0768-partition-labels
0782-jewels-and-stones
0812-rotate-string
1006-vowel-spellchecker
1078-remove-outermost-parentheses
1160-letter-tile-possibilities
1170-shortest-common-supersequence
1197-parsing-a-boolean-expression
1205-defanging-an-ip-address
1250-longest-common-subsequence
1302-delete-characters-to-make-fancy-string
1304-longest-happy-string
1350-remove-sub-folders-from-the-filesystem
1460-number-of-substrings-containing-all-three-characters
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1524-string-matching-in-an-array
1537-maximum-score-after-splitting-a-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1667-find-kth-bit-in-nth-binary-string
1715-split-a-string-into-the-max-number-of-unique-substrings
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1818-maximum-score-from-removing-substrings
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
1915-check-if-one-string-swap-can-make-strings-equal
1923-sentence-similarity-iii
1987-substrings-of-size-three-with-distinct-characters
2021-remove-all-occurrences-of-a-substring
2032-largest-odd-number-in-string
2095-minimum-number-of-swaps-to-make-the-string-balanced
2107-find-unique-binary-string
2137-final-value-of-variable-after-performing-operations
2219-maximum-number-of-words-found-in-sentences
2220-find-all-possible-recipes-from-given-supplies
2221-check-if-a-parentheses-string-can-be-valid
2232-adding-spaces-to-a-string
2260-divide-a-string-into-groups-of-size-k
2292-counting-words-with-a-given-prefix
2300-construct-string-with-repeat-limit
2346-largest-3-same-digit-number-in-string
2395-longest-binary-subsequence-less-than-or-equal-to-k
2406-decode-the-message
2414-move-pieces-to-obtain-a-string
2456-construct-smallest-number-from-di-string
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2465-shifting-letters-ii
2494-sum-of-prefix-scores-of-strings
2580-circular-sentence
2599-take-k-of-each-character-from-left-and-right
2691-count-vowel-strings-in-ranges
2755-extra-characters-in-a-string
2800-minimum-string-length-after-removing-substrings
2886-faulty-keyboard
3018-make-string-a-subsequence-using-cyclic-increments
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3195-separate-black-and-white-balls
3267-find-longest-special-substring-that-occurs-thrice-i
3309-count-prefix-and-suffix-pairs-i
3329-find-the-length-of-the-longest-common-prefix
3360-minimum-deletions-to-make-string-k-special
3379-score-of-a-string
3396-valid-word
3447-clear-digits
3451-string-compression-iii
3566-find-the-sequence-of-strings-appeared-on-the-screen
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3617-find-the-original-typed-string-i
3754-maximum-manhattan-distance-after-k-changes

Dynamic Programming

0005-longest-palindromic-substring
0010-regular-expression-matching
0032-longest-valid-parentheses
0042-trapping-rain-water
0044-wildcard-matching
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0070-climbing-stairs
0072-edit-distance
0085-maximal-rectangle
0095-unique-binary-search-trees-ii
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0174-dungeon-game
0300-longest-increasing-subsequence
0312-burst-balloons
0322-coin-change
0338-counting-bits
0368-largest-divisible-subset
0397-integer-replacement
0416-partition-equal-subset-sum
0494-target-sum
0516-longest-palindromic-subsequence
0518-coin-change-ii
0673-number-of-longest-increasing-subsequence
0678-valid-parenthesis-string
0689-maximum-sum-of-3-non-overlapping-subarrays
0905-length-of-longest-fibonacci-subsequence
0934-bitwise-ors-of-subarrays
1013-fibonacci-number
1025-minimum-cost-for-tickets
1063-best-sightseeing-pair
1170-shortest-common-supersequence
1250-longest-common-subsequence
1402-count-square-submatrices-with-all-ones
1631-number-of-sub-arrays-with-odd-sum
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1766-minimum-number-of-removals-to-make-mountain-array
1849-maximum-absolute-sum-of-any-subarray
2090-number-of-ways-to-arrive-at-destination
2164-two-best-non-overlapping-events
2262-solving-questions-with-brainpower
2395-longest-binary-subsequence-less-than-or-equal-to-k
2408-number-of-people-aware-of-a-secret
2562-count-ways-to-build-good-strings
2586-longest-square-streak-in-an-array
2755-extra-characters-in-a-string
2794-maximum-number-of-moves-in-a-grid
2882-ways-to-express-an-integer-as-sum-of-powers
3490-find-the-maximum-length-of-valid-subsequence-i
3491-find-the-maximum-length-of-valid-subsequence-ii

Counting

0169-majority-element
0229-majority-element-ii
0347-top-k-frequent-elements
0387-first-unique-character-in-a-string
0451-sort-characters-by-frequency
0594-longest-harmonious-subsequence
0900-reordered-power-of-2
1160-letter-tile-possibilities
1364-tuple-with-same-product
1396-count-servers-that-communicate
1482-how-many-numbers-are-smaller-than-the-current-number
1510-find-lucky-integer-in-an-array
1620-check-if-array-pairs-are-divisible-by-k
1635-number-of-good-pairs
1915-check-if-one-string-swap-can-make-strings-equal
1987-substrings-of-size-three-with-distinct-characters
2300-construct-string-with-repeat-limit
2308-divide-array-into-equal-pairs
2448-count-number-of-bad-pairs
2494-sum-of-prefix-scores-of-strings
2614-maximum-count-of-positive-integer-and-negative-integer
3267-find-longest-special-substring-that-occurs-thrice-i
3360-minimum-deletions-to-make-string-k-special
3754-maximum-manhattan-distance-after-k-changes

Greedy

0011-container-with-most-water
0044-wildcard-matching
0055-jump-game
0316-remove-duplicate-letters
0397-integer-replacement
0632-smallest-range-covering-elements-from-k-lists
0670-maximum-swap
0678-valid-parenthesis-string
0680-valid-palindrome-ii
0768-partition-labels
0780-max-chunks-to-make-sorted
1304-longest-happy-string
1478-maximum-number-of-events-that-can-be-attended
1529-max-difference-you-can-get-from-changing-an-integer
1766-minimum-number-of-removals-to-make-mountain-array
1818-maximum-score-from-removing-substrings
1917-maximum-average-pass-ratio
2032-largest-odd-number-in-string
2089-maximum-matrix-sum
2095-minimum-number-of-swaps-to-make-the-string-balanced
2199-two-furthest-houses-with-different-colors
2221-check-if-a-parentheses-string-can-be-valid
2300-construct-string-with-repeat-limit
2387-partition-array-such-that-maximum-difference-is-k
2395-longest-binary-subsequence-less-than-or-equal-to-k
2456-construct-smallest-number-from-di-string
2488-divide-intervals-into-minimum-number-of-groups
2497-maximum-matching-of-players-with-trainers
2509-minimize-xor
2616-maximal-score-after-applying-k-operations
2640-maximum-number-of-integers-to-choose-from-a-range-i
2681-put-marbles-in-bags
3001-apply-operations-to-maximize-score
3195-separate-black-and-white-balls
3241-divide-array-into-arrays-with-max-difference
3360-minimum-deletions-to-make-string-k-special
3741-reschedule-meetings-for-maximum-free-time-ii
3743-reschedule-meetings-for-maximum-free-time-i

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0074-search-a-2d-matrix
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0162-find-peak-element
0222-count-complete-tree-nodes
0240-search-a-2d-matrix-ii
0268-missing-number
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0540-single-element-in-a-sorted-array
0729-my-calendar-i
0731-my-calendar-ii
0745-find-smallest-letter-greater-than-target
0792-binary-search
0892-shortest-subarray-with-sum-at-least-k
0924-fair-candy-swap
1335-maximum-candies-allocated-to-k-children
1468-check-if-n-and-its-double-exist
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1766-minimum-number-of-removals-to-make-mountain-array
1886-minimum-limit-of-balls-in-a-bag
2164-two-best-non-overlapping-events
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2498-smallest-subarrays-with-maximum-bitwise-or
2586-longest-square-streak-in-an-array
2614-maximum-count-of-positive-integer-and-negative-integer
2640-maximum-number-of-integers-to-choose-from-a-range-i
2690-house-robber-iv
2699-count-the-number-of-fair-pairs
2891-maximum-beauty-of-an-array-after-applying-operation
3267-find-longest-special-substring-that-occurs-thrice-i
3427-special-array-ii
3643-zero-array-transformation-ii
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Design

0208-implement-trie-prefix-tree
0225-implement-stack-using-queues
0303-range-sum-query-immutable
0432-all-oone-data-structure
0729-my-calendar-i
0731-my-calendar-ii
0859-design-circular-deque
1387-find-elements-in-a-contaminated-binary-tree
1477-product-of-the-last-k-numbers
1497-design-a-stack-with-increment-operation
1995-finding-pairs-with-a-certain-sum
2434-design-a-number-container-system

Segment Tree

0673-number-of-longest-increasing-subsequence
0729-my-calendar-i
0731-my-calendar-ii
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Ordered Set

0729-my-calendar-i
0731-my-calendar-ii
2434-design-a-number-container-system
2868-continuous-subarrays
3790-fruits-into-baskets-ii
3791-fruits-into-baskets-iii

Prefix Sum

0303-range-sum-query-immutable
0724-find-pivot-index
0731-my-calendar-ii
0892-shortest-subarray-with-sum-at-least-k
1477-product-of-the-last-k-numbers
1537-maximum-score-after-splitting-a-string
1631-number-of-sub-arrays-with-odd-sum
1694-make-sum-divisible-by-p
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2145-grid-game
2358-number-of-ways-to-split-array
2465-shifting-letters-ii
2488-divide-intervals-into-minimum-number-of-groups
2529-range-product-queries-of-powers
2691-count-vowel-strings-in-ranges
3427-special-array-ii
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3643-zero-array-transformation-ii

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0083-remove-duplicates-from-sorted-list
0141-linked-list-cycle
0142-linked-list-cycle-ii
0148-sort-list
0160-intersection-of-two-linked-lists
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0432-all-oone-data-structure
0528-swapping-nodes-in-a-linked-list
0859-design-circular-deque
0908-middle-of-the-linked-list
1411-convert-binary-number-in-a-linked-list-to-integer
2216-delete-the-middle-node-of-a-linked-list

Queue

0225-implement-stack-using-queues
0387-first-unique-character-in-a-string
0859-design-circular-deque
0892-shortest-subarray-with-sum-at-least-k
2408-number-of-people-aware-of-a-secret
2868-continuous-subarrays
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Doubly-Linked List

0432-all-oone-data-structure

Stack

0020-valid-parentheses
0032-longest-valid-parentheses
0042-trapping-rain-water
0071-simplify-path
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0225-implement-stack-using-queues
0234-palindrome-linked-list
0316-remove-duplicate-letters
0496-next-greater-element-i
0503-next-greater-element-ii
0678-valid-parenthesis-string
0780-max-chunks-to-make-sorted
1002-maximum-width-ramp
1078-remove-outermost-parentheses
1197-parsing-a-boolean-expression
1497-design-a-stack-with-increment-operation
1570-final-prices-with-a-special-discount-in-a-shop
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1818-maximum-score-from-removing-substrings
2021-remove-all-occurrences-of-a-substring
2095-minimum-number-of-swaps-to-make-the-string-balanced
2221-check-if-a-parentheses-string-can-be-valid
2456-construct-smallest-number-from-di-string
2800-minimum-string-length-after-removing-substrings
3001-apply-operations-to-maximize-score
3447-clear-digits

Sorting

0049-group-anagrams
0075-sort-colors
0088-merge-sorted-array
0148-sort-list
0169-majority-element
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0368-largest-divisible-subset
0389-find-the-difference
0414-third-maximum-number
0451-sort-characters-by-frequency
0506-relative-ranks
0594-longest-harmonious-subsequence
0632-smallest-range-covering-elements-from-k-lists
0645-set-mismatch
0780-max-chunks-to-make-sorted
0900-reordered-power-of-2
0924-fair-candy-swap
1256-rank-transform-of-an-array
1468-check-if-n-and-its-double-exist
1478-maximum-number-of-events-that-can-be-attended
1482-how-many-numbers-are-smaller-than-the-current-number
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
2042-maximum-product-difference-between-two-pairs
2160-minimum-operations-to-make-a-uni-value-grid
2164-two-best-non-overlapping-events
2179-most-beautiful-item-for-each-query
2204-find-subsequence-of-length-k-with-the-largest-sum
2387-partition-array-such-that-maximum-difference-is-k
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2488-divide-intervals-into-minimum-number-of-groups
2497-maximum-matching-of-players-with-trainers
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2588-maximum-number-of-points-from-grid-queries
2640-maximum-number-of-integers-to-choose-from-a-range-i
2646-kth-largest-sum-in-a-binary-tree
2681-put-marbles-in-bags
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2888-minimum-index-of-a-valid-split
2891-maximum-beauty-of-an-array-after-applying-operation
3001-apply-operations-to-maximize-score
3219-make-lexicographically-smallest-array-by-swapping-elements
3241-divide-array-into-arrays-with-max-difference
3291-find-if-array-can-be-sorted
3321-type-of-triangle
3360-minimum-deletions-to-make-string-k-special
3430-count-days-without-meetings
3657-check-if-grid-can-be-cut-into-sections

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
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
0031-next-permutation
0042-trapping-rain-water
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0142-linked-list-cycle-ii
0148-sort-list
0151-reverse-words-in-a-string
0160-intersection-of-two-linked-lists
0189-rotate-array
0234-palindrome-linked-list
0283-move-zeroes
0287-find-the-duplicate-number
0344-reverse-string
0345-reverse-vowels-of-a-string
0349-intersection-of-two-arrays
0350-intersection-of-two-arrays-ii
0528-swapping-nodes-in-a-linked-list
0541-reverse-string-ii
0557-reverse-words-in-a-string-iii
0567-permutation-in-string
0680-valid-palindrome-ii
0768-partition-labels
0908-middle-of-the-linked-list
1468-check-if-n-and-its-double-exist
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1923-sentence-similarity-iii
1972-rotating-the-box
2095-minimum-number-of-swaps-to-make-the-string-balanced
2216-delete-the-middle-node-of-a-linked-list
2232-adding-spaces-to-a-string
2265-partition-array-according-to-given-pivot
2271-rearrange-array-elements-by-sign
2414-move-pieces-to-obtain-a-string
2488-divide-intervals-into-minimum-number-of-groups
2497-maximum-matching-of-players-with-trainers
2551-apply-operations-to-an-array
2581-divide-players-into-teams-of-equal-skill
2588-maximum-number-of-points-from-grid-queries
2699-count-the-number-of-fair-pairs
2707-merge-two-2d-arrays-by-summing-values
3018-make-string-a-subsequence-using-cyclic-increments
3195-separate-black-and-white-balls

Sliding Window

0003-longest-substring-without-repeating-characters
0567-permutation-in-string
0594-longest-harmonious-subsequence
0632-smallest-range-covering-elements-from-k-lists
0892-shortest-subarray-with-sum-at-least-k
1460-number-of-substrings-containing-all-three-characters
1755-defuse-the-bomb
1813-maximum-erasure-value
1987-substrings-of-size-three-with-distinct-characters
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2478-longest-nice-subarray
2498-smallest-subarrays-with-maximum-bitwise-or
2552-maximum-sum-of-distinct-subarrays-with-length-k
2599-take-k-of-each-character-from-left-and-right
2856-count-complete-subarrays-in-an-array
2868-continuous-subarrays
2891-maximum-beauty-of-an-array-after-applying-operation
3267-find-longest-special-substring-that-occurs-thrice-i
3380-shortest-subarray-with-or-at-least-k-ii
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3522-find-the-power-of-k-size-subarrays-i
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3743-reschedule-meetings-for-maximum-free-time-i

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0148-sort-list
0169-majority-element
0191-number-of-1-bits
0240-search-a-2d-matrix-ii
0347-top-k-frequent-elements
0925-construct-binary-tree-from-preorder-and-postorder-traversal

Simulation

0067-add-binary
0258-add-digits
0412-fizz-buzz
0495-teemo-attacking
1667-find-kth-bit-in-nth-binary-string
2021-remove-all-occurrences-of-a-substring
2048-build-array-from-permutation
2058-concatenation-of-array
2137-final-value-of-variable-after-performing-operations
2232-adding-spaces-to-a-string
2260-divide-a-string-into-groups-of-size-k
2265-partition-array-according-to-given-pivot
2271-rearrange-array-elements-by-sign
2343-count-unguarded-cells-in-the-grid
2408-number-of-people-aware-of-a-secret
2551-apply-operations-to-an-array
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2800-minimum-string-length-after-removing-substrings
2886-faulty-keyboard
3332-minimum-operations-to-exceed-threshold-value-ii
3434-find-the-number-of-distinct-colors-among-the-balls
3447-clear-digits
3555-final-array-state-after-k-multiplication-operations-i
3566-find-the-sequence-of-strings-appeared-on-the-screen
3600-find-the-k-th-character-in-string-game-i
3790-fruits-into-baskets-ii

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0029-divide-two-integers
0062-unique-paths
0066-plus-one
0067-add-binary
0070-climbing-stairs
0168-excel-sheet-column-title
0171-excel-sheet-column-number
0189-rotate-array
0204-count-primes
0231-power-of-two
0258-add-digits
0263-ugly-number
0268-missing-number
0342-power-of-four
0368-largest-divisible-subset
0371-sum-of-two-integers
0405-convert-a-number-to-hexadecimal
0412-fizz-buzz
0670-maximum-swap
0828-chalkboard-xor-game
0900-reordered-power-of-2
1013-fibonacci-number
1411-convert-binary-number-in-a-linked-list-to-integer
1426-find-n-unique-integers-sum-up-to-zero
1440-convert-integer-to-the-sum-of-two-no-zero-integers
1477-product-of-the-last-k-numbers
1529-max-difference-you-can-get-from-changing-an-integer
1631-number-of-sub-arrays-with-odd-sum
1635-number-of-good-pairs
1889-check-if-number-is-a-sum-of-powers-of-three
1993-sum-of-all-subset-xor-totals
2032-largest-odd-number-in-string
2160-minimum-operations-to-make-a-uni-value-grid
2383-add-two-integers
2448-count-number-of-bad-pairs
2610-closest-prime-numbers-in-range
2802-find-the-punishment-number-of-an-integer
3001-apply-operations-to-maximize-score
3227-find-missing-and-repeated-values
3321-type-of-triangle
3555-final-array-state-after-k-multiplication-operations-i
3600-find-the-k-th-character-in-string-game-i
3754-maximum-manhattan-distance-after-k-changes
3830-find-closest-person

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0316-remove-duplicate-letters
0496-next-greater-element-i
0503-next-greater-element-ii
0780-max-chunks-to-make-sorted
1002-maximum-width-ramp
1570-final-prices-with-a-special-discount-in-a-shop
1679-shortest-subarray-to-be-removed-to-make-array-sorted
3001-apply-operations-to-maximize-score

Heap (Priority Queue)

0347-top-k-frequent-elements
0407-trapping-rain-water-ii
0451-sort-characters-by-frequency
0506-relative-ranks
0632-smallest-range-covering-elements-from-k-lists
0892-shortest-subarray-with-sum-at-least-k
1304-longest-happy-string
1478-maximum-number-of-events-that-can-be-attended
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1917-maximum-average-pass-ratio
2054-the-number-of-the-smallest-unoccupied-chair
2164-two-best-non-overlapping-events
2204-find-subsequence-of-length-k-with-the-largest-sum
2300-construct-string-with-repeat-limit
2375-minimum-obstacle-removal-to-reach-corner
2434-design-a-number-container-system
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2488-divide-intervals-into-minimum-number-of-groups
2588-maximum-number-of-points-from-grid-queries
2616-maximal-score-after-applying-k-operations
2681-put-marbles-in-bags
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2711-minimum-time-to-visit-a-cell-in-a-grid
2868-continuous-subarrays
3332-minimum-operations-to-exceed-threshold-value-ii
3555-final-array-state-after-k-multiplication-operations-i

Backtracking

0046-permutations
0051-n-queens
0052-n-queens-ii
0078-subsets
0079-word-search
0090-subsets-ii
0095-unique-binary-search-trees-ii
0257-binary-tree-paths
0494-target-sum
1007-numbers-with-same-consecutive-differences
1022-unique-paths-iii
1160-letter-tile-possibilities
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1715-split-a-string-into-the-max-number-of-unique-substrings
1819-construct-the-lexicographically-largest-valid-sequence
1993-sum-of-all-subset-xor-totals
2107-find-unique-binary-string
2170-count-number-of-maximum-bitwise-or-subsets
2456-construct-smallest-number-from-di-string
2802-find-the-punishment-number-of-an-integer

Bit Manipulation

0029-divide-two-integers
0067-add-binary
0078-subsets
0090-subsets-ii
0136-single-number
0137-single-number-ii
0191-number-of-1-bits
0222-count-complete-tree-nodes
0231-power-of-two
0260-single-number-iii
0268-missing-number
0287-find-the-duplicate-number
0318-maximum-product-of-word-lengths
0338-counting-bits
0342-power-of-four
0371-sum-of-two-integers
0389-find-the-difference
0397-integer-replacement
0405-convert-a-number-to-hexadecimal
0645-set-mismatch
0828-chalkboard-xor-game
0934-bitwise-ors-of-subarrays
1022-unique-paths-iii
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets
2308-divide-array-into-equal-pairs
2323-minimum-bit-flips-to-convert-number
2478-longest-nice-subarray
2498-smallest-subarrays-with-maximum-bitwise-or
2509-minimize-xor
2529-range-product-queries-of-powers
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
2837-minimum-operations-to-make-the-integer-zero
3291-find-if-array-can-be-sorted
3348-minimum-cost-walk-in-weighted-graph
3380-shortest-subarray-with-or-at-least-k-ii
3394-minimum-array-end
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3600-find-the-k-th-character-in-string-game-i

Enumeration

0204-count-primes
0900-reordered-power-of-2
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets
2837-minimum-operations-to-make-the-integer-zero
3741-reschedule-meetings-for-maximum-free-time-ii

Recursion

0002-add-two-numbers
0010-regular-expression-matching
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0044-wildcard-matching
0203-remove-linked-list-elements
0206-reverse-linked-list
0231-power-of-two
0234-palindrome-linked-list
0342-power-of-four
1013-fibonacci-number
1197-parsing-a-boolean-expression
1667-find-kth-bit-in-nth-binary-string
3600-find-the-k-th-character-in-string-game-i

Tree

0094-binary-tree-inorder-traversal
0095-unique-binary-search-trees-ii
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0222-count-complete-tree-nodes
0230-kth-smallest-element-in-a-bst
0257-binary-tree-paths
0515-find-largest-value-in-each-tree-row
0538-convert-bst-to-greater-tree
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0988-flip-equivalent-binary-trees
1387-find-elements-in-a-contaminated-binary-tree
2493-reverse-odd-levels-of-binary-tree
2545-height-of-binary-tree-after-subtree-removal-queries
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
2564-most-profitable-path-in-a-tree
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii
3439-find-minimum-diameter-after-merging-two-trees

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0111-minimum-depth-of-binary-tree
0112-path-sum
0127-word-ladder
0130-surrounded-regions
0133-clone-graph
0322-coin-change
0407-trapping-rain-water-ii
0515-find-largest-value-in-each-tree-row
0547-number-of-provinces
0684-redundant-connection
0787-sliding-puzzle
0820-find-eventual-safe-states
0854-making-a-large-island
1007-numbers-with-same-consecutive-differences
1387-find-elements-in-a-contaminated-binary-tree
1396-count-servers-that-communicate
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1558-course-schedule-iv
1876-map-of-highest-peak
2038-nearest-exit-from-entrance-in-maze
2121-find-if-path-exists-in-graph
2375-minimum-obstacle-removal-to-reach-corner
2493-reverse-odd-levels-of-binary-tree
2545-height-of-binary-tree-after-subtree-removal-queries
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
2564-most-profitable-path-in-a-tree
2583-divide-nodes-into-the-maximum-number-of-groups
2588-maximum-number-of-points-from-grid-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii
2711-minimum-time-to-visit-a-cell-in-a-grid
2793-count-the-number-of-complete-components
3439-find-minimum-diameter-after-merging-two-trees
3517-shortest-distance-after-road-addition-queries-i

Binary Tree

0094-binary-tree-inorder-traversal
0095-unique-binary-search-trees-ii
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0107-binary-tree-level-order-traversal-ii
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0222-count-complete-tree-nodes
0230-kth-smallest-element-in-a-bst
0257-binary-tree-paths
0515-find-largest-value-in-each-tree-row
0538-convert-bst-to-greater-tree
0925-construct-binary-tree-from-preorder-and-postorder-traversal
0988-flip-equivalent-binary-trees
1387-find-elements-in-a-contaminated-binary-tree
2493-reverse-odd-levels-of-binary-tree
2545-height-of-binary-tree-after-subtree-removal-queries
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii

Matrix

0074-search-a-2d-matrix
0079-word-search
0085-maximal-rectangle
0130-surrounded-regions
0174-dungeon-game
0240-search-a-2d-matrix-ii
0407-trapping-rain-water-ii
0787-sliding-puzzle
0854-making-a-large-island
1022-unique-paths-iii
1147-flip-columns-for-maximum-number-of-equal-rows
1396-count-servers-that-communicate
1402-count-square-submatrices-with-all-ones
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1876-map-of-highest-peak
1972-rotating-the-box
2038-nearest-exit-from-entrance-in-maze
2089-maximum-matrix-sum
2145-grid-game
2160-minimum-operations-to-make-a-uni-value-grid
2343-count-unguarded-cells-in-the-grid
2375-minimum-obstacle-removal-to-reach-corner
2588-maximum-number-of-points-from-grid-queries
2711-minimum-time-to-visit-a-cell-in-a-grid
2794-maximum-number-of-moves-in-a-grid
3227-find-missing-and-repeated-values

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
0812-rotate-string
1524-string-matching-in-an-array
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Monotonic Queue

0892-shortest-subarray-with-sum-at-least-k
2868-continuous-subarrays

Memoization

0070-climbing-stairs
0397-integer-replacement
1013-fibonacci-number
2395-longest-binary-subsequence-less-than-or-equal-to-k

Rolling Hash

3309-count-prefix-and-suffix-pairs-i

Hash Function

3309-count-prefix-and-suffix-pairs-i

Graph

0133-clone-graph
0547-number-of-provinces
0684-redundant-connection
0820-find-eventual-safe-states
1039-find-the-town-judge
1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
1558-course-schedule-iv
2090-number-of-ways-to-arrive-at-destination
2121-find-if-path-exists-in-graph
2201-valid-arrangement-of-pairs
2220-find-all-possible-recipes-from-given-supplies
2246-maximum-employees-to-be-invited-to-a-meeting
2375-minimum-obstacle-removal-to-reach-corner
2564-most-profitable-path-in-a-tree
2583-divide-nodes-into-the-maximum-number-of-groups
2711-minimum-time-to-visit-a-cell-in-a-grid
2793-count-the-number-of-complete-components
3189-find-champion-ii
3348-minimum-cost-walk-in-weighted-graph
3439-find-minimum-diameter-after-merging-two-trees
3517-shortest-distance-after-road-addition-queries-i

Shortest Path

1485-minimum-cost-to-make-at-least-one-valid-path-in-a-grid
2090-number-of-ways-to-arrive-at-destination
2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid

Eulerian Circuit

2201-valid-arrangement-of-pairs

Binary Indexed Tree

0673-number-of-longest-increasing-subsequence

Combinatorics

0062-unique-paths
1993-sum-of-all-subset-xor-totals

Binary Search Tree

0095-unique-binary-search-trees-ii
0108-convert-sorted-array-to-binary-search-tree
0230-kth-smallest-element-in-a-bst
0538-convert-bst-to-greater-tree

Brainteaser

0828-chalkboard-xor-game
2533-bitwise-xor-of-all-pairings
2837-minimum-operations-to-make-the-integer-zero

Game Theory

0828-chalkboard-xor-game

Union Find

0130-surrounded-regions
0547-number-of-provinces
0684-redundant-connection
0854-making-a-large-island
1396-count-servers-that-communicate
2121-find-if-path-exists-in-graph
2583-divide-nodes-into-the-maximum-number-of-groups
2588-maximum-number-of-points-from-grid-queries
2793-count-the-number-of-complete-components
3219-make-lexicographically-smallest-array-by-swapping-elements
3348-minimum-cost-walk-in-weighted-graph

Topological Sort

0820-find-eventual-safe-states
1558-course-schedule-iv
2090-number-of-ways-to-arrive-at-destination
2220-find-all-possible-recipes-from-given-supplies
2246-maximum-employees-to-be-invited-to-a-meeting

Data Stream

1477-product-of-the-last-k-numbers

Number Theory

0204-count-primes
0258-add-digits
2610-closest-prime-numbers-in-range
3001-apply-operations-to-maximize-score

Bucket Sort

0347-top-k-frequent-elements
0451-sort-characters-by-frequency

Merge Sort

0148-sort-list

Database

0175-combine-two-tables
0181-employees-earning-more-than-their-managers

Quickselect

0347-top-k-frequent-elements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published