Skip to content

ADITYAGABA1322/Daily-LeetCode-Challenge-Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Daily-LeetCode-Challenge-Solution πŸ‘€

MasterHead

Hi Everyone. It's me Aditya and Here I'm providing you Daily LeetCode Challenge Solution with a full Explanation(Line to Line)

In Nine Languages:

C++🫢 && JAVA && Python && Python3 && C && C# && JavaScript && Swift && Dart πŸ”₯

LeetCode Topics

Greedy

0045-jump-game-ii
0055-jump-game
0179-largest-number
0624-maximum-distance-in-arrays
0632-smallest-range-covering-elements-from-k-lists
0670-maximum-swap
0780-max-chunks-to-make-sorted
0890-lemonade-change
0957-minimum-add-to-make-parentheses-valid
1304-longest-happy-string
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1711-find-valid-matrix-given-row-and-column-sums
1766-minimum-number-of-removals-to-make-mountain-array
1818-maximum-score-from-removing-substrings
1917-maximum-average-pass-ratio
2089-maximum-matrix-sum
2095-minimum-number-of-swaps-to-make-the-string-balanced
2300-construct-string-with-repeat-limit
2379-maximum-total-importance-of-roads
2488-divide-intervals-into-minimum-number-of-groups
2538-minimum-cost-to-make-array-equal
2616-maximal-score-after-applying-k-operations
2640-maximum-number-of-integers-to-choose-from-a-range-i
2716-prime-subtraction-operation
3195-separate-black-and-white-balls
3229-minimum-cost-to-make-array-equalindromic
3276-minimum-number-of-pushes-to-type-word-ii

Graph

0133-clone-graph
0984-most-stones-removed-with-same-row-or-column
1325-path-with-maximum-probability
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
2171-second-minimum-time-to-reach-destination
2201-valid-arrangement-of-pairs
2375-minimum-obstacle-removal-to-reach-corner
2379-maximum-total-importance-of-roads
2472-build-a-matrix-with-conditions
2711-minimum-time-to-visit-a-cell-in-a-grid
2803-modify-graph-edge-weights
3189-find-champion-ii
3235-minimum-cost-to-convert-string-i
3271-count-the-number-of-houses-at-a-certain-distance-i
3517-shortest-distance-after-road-addition-queries-i

Sorting

0049-group-anagrams
0179-largest-number
0217-contains-duplicate
0350-intersection-of-two-arrays-ii
0462-minimum-moves-to-equal-array-elements-ii
0539-minimum-time-difference
0632-smallest-range-covering-elements-from-k-lists
0719-find-k-th-smallest-pair-distance
0726-number-of-atoms
0780-max-chunks-to-make-sorted
0948-sort-an-array
1256-rank-transform-of-an-array
1333-sort-the-jumbled-numbers
1468-check-if-n-and-its-double-exist
1556-make-two-arrays-equal-by-reversing-subarrays
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1741-sort-array-by-increasing-frequency
2164-two-best-non-overlapping-events
2179-most-beautiful-item-for-each-query
2379-maximum-total-importance-of-roads
2488-divide-intervals-into-minimum-number-of-groups
2502-sort-the-people
2538-minimum-cost-to-make-array-equal
2554-minimum-total-distance-traveled
2586-longest-square-streak-in-an-array
2640-maximum-number-of-integers-to-choose-from-a-range-i
2646-kth-largest-sum-in-a-binary-tree
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2718-minimum-operations-to-make-all-array-elements-equal
2846-robot-collisions
2891-maximum-beauty-of-an-array-after-applying-operation
3229-minimum-cost-to-make-array-equalindromic
3276-minimum-number-of-pushes-to-type-word-ii
3291-find-if-array-can-be-sorted

Heap (Priority Queue)

0264-ugly-number-ii
0632-smallest-range-covering-elements-from-k-lists
0789-kth-largest-element-in-a-stream
0892-shortest-subarray-with-sum-at-least-k
0948-sort-an-array
1304-longest-happy-string
1325-path-with-maximum-probability
1917-maximum-average-pass-ratio
2054-the-number-of-the-smallest-unoccupied-chair
2164-two-best-non-overlapping-events
2300-construct-string-with-repeat-limit
2375-minimum-obstacle-removal-to-reach-corner
2379-maximum-total-importance-of-roads
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
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
2803-modify-graph-edge-weights
2868-continuous-subarrays
3181-find-building-where-alice-and-bob-can-meet
3555-final-array-state-after-k-multiplication-operations-i

Breadth-First Search

0133-clone-graph
0322-coin-change
0787-sliding-puzzle
0999-regions-cut-by-slashes
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1691-minimum-number-of-days-to-disconnect-island
2035-count-sub-islands
2171-second-minimum-time-to-reach-destination
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
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii
2711-minimum-time-to-visit-a-cell-in-a-grid
3271-count-the-number-of-houses-at-a-certain-distance-i
3517-shortest-distance-after-road-addition-queries-i

Prefix Sum

0238-product-of-array-except-self
0892-shortest-subarray-with-sum-at-least-k
1240-stone-game-ii
1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1694-make-sum-divisible-by-p
1940-maximum-xor-for-each-query
2006-find-the-student-that-will-replace-the-chalk
2488-divide-intervals-into-minimum-number-of-groups
2538-minimum-cost-to-make-array-equal
2718-minimum-operations-to-make-all-array-elements-equal
3271-count-the-number-of-houses-at-a-certain-distance-i
3427-special-array-ii

Depth-First Search

0133-clone-graph
0145-binary-tree-postorder-traversal
0236-lowest-common-ancestor-of-a-binary-tree
0386-lexicographical-numbers
0776-n-ary-tree-postorder-traversal
0984-most-stones-removed-with-same-row-or-column
0988-flip-equivalent-binary-trees
0999-regions-cut-by-slashes
1207-delete-nodes-and-return-forest
1350-remove-sub-folders-from-the-filesystem
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1691-minimum-number-of-days-to-disconnect-island
2035-count-sub-islands
2201-valid-arrangement-of-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2493-reverse-odd-levels-of-binary-tree
2545-height-of-binary-tree-after-subtree-removal-queries
2677-cousins-in-binary-tree-ii
3058-maximum-number-of-k-divisible-components

Topological Sort

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
2472-build-a-matrix-with-conditions

Two Pointers

0005-longest-palindromic-substring
0042-trapping-rain-water
0350-intersection-of-two-arrays-ii
0647-palindromic-substrings
0719-find-k-th-smallest-pair-distance
1468-check-if-n-and-its-double-exist
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1615-range-sum-of-sorted-subarray-sums
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
2232-adding-spaces-to-a-string
2414-move-pieces-to-obtain-a-string
2488-divide-intervals-into-minimum-number-of-groups
2699-count-the-number-of-fair-pairs
3018-make-string-a-subsequence-using-cyclic-increments
3195-separate-black-and-white-balls

String

0005-longest-palindromic-substring
0010-regular-expression-matching
0049-group-anagrams
0091-decode-ways
0139-word-break
0179-largest-number
0214-shortest-palindrome
0241-different-ways-to-add-parentheses
0273-integer-to-english-words
0516-longest-palindromic-subsequence
0539-minimum-time-difference
0564-find-the-closest-palindrome
0592-fraction-addition-and-subtraction
0647-palindromic-substrings
0664-strange-printer
0726-number-of-atoms
0812-rotate-string
0920-uncommon-words-from-two-sentences
0957-minimum-add-to-make-parentheses-valid
1197-parsing-a-boolean-expression
1250-longest-common-subsequence
1298-reverse-substrings-between-each-pair-of-parentheses
1302-delete-characters-to-make-fancy-string
1304-longest-happy-string
1350-remove-sub-folders-from-the-filesystem
1473-find-the-longest-substring-containing-vowels-in-even-counts
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
1720-crawler-log-folder
1786-count-the-number-of-consistent-strings
1818-maximum-score-from-removing-substrings
1923-sentence-similarity-iii
2076-sum-of-digits-of-string-after-convert
2095-minimum-number-of-swaps-to-make-the-string-balanced
2163-kth-distinct-string-in-an-array
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2232-adding-spaces-to-a-string
2300-construct-string-with-repeat-limit
2414-move-pieces-to-obtain-a-string
2494-sum-of-prefix-scores-of-strings
2502-sort-the-people
2580-circular-sentence
2599-take-k-of-each-character-from-left-and-right
2727-number-of-senior-citizens
2755-extra-characters-in-a-string
2800-minimum-string-length-after-removing-substrings
3018-make-string-a-subsequence-using-cyclic-increments
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3195-separate-black-and-white-balls
3235-minimum-cost-to-convert-string-i
3267-find-longest-special-substring-that-occurs-thrice-i
3276-minimum-number-of-pushes-to-type-word-ii
3329-find-the-length-of-the-longest-common-prefix
3451-string-compression-iii

Dynamic Programming

0005-longest-palindromic-substring
0010-regular-expression-matching
0042-trapping-rain-water
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0063-unique-paths-ii
0091-decode-ways
0139-word-break
0152-maximum-product-subarray
0198-house-robber
0213-house-robber-ii
0241-different-ways-to-add-parentheses
0264-ugly-number-ii
0300-longest-increasing-subsequence
0322-coin-change
0377-combination-sum-iv
0516-longest-palindromic-subsequence
0647-palindromic-substrings
0650-2-keys-keyboard
0664-strange-printer
1240-stone-game-ii
1250-longest-common-subsequence
1402-count-square-submatrices-with-all-ones
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1511-count-number-of-teams
1766-minimum-number-of-removals-to-make-mountain-array
2067-maximum-number-of-points-with-cost
2164-two-best-non-overlapping-events
2554-minimum-total-distance-traveled
2586-longest-square-streak-in-an-array
2755-extra-characters-in-a-string
2794-maximum-number-of-moves-in-a-grid

Rolling Hash

0214-shortest-palindrome

String Matching

0214-shortest-palindrome
0812-rotate-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence

Hash Function

0214-shortest-palindrome

Union Find

0128-longest-consecutive-sequence
0984-most-stones-removed-with-same-row-or-column
0999-regions-cut-by-slashes
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
2035-count-sub-islands

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0040-combination-sum-ii
0042-trapping-rain-water
0045-jump-game-ii
0049-group-anagrams
0053-maximum-subarray
0055-jump-game
0063-unique-paths-ii
0128-longest-consecutive-sequence
0139-word-break
0152-maximum-product-subarray
0179-largest-number
0198-house-robber
0213-house-robber-ii
0217-contains-duplicate
0238-product-of-array-except-self
0300-longest-increasing-subsequence
0307-range-sum-query-mutable
0322-coin-change
0350-intersection-of-two-arrays-ii
0377-combination-sum-iv
0453-minimum-moves-to-equal-array-elements
0462-minimum-moves-to-equal-array-elements-ii
0539-minimum-time-difference
0624-maximum-distance-in-arrays
0632-smallest-range-covering-elements-from-k-lists
0719-find-k-th-smallest-pair-distance
0729-my-calendar-i
0780-max-chunks-to-make-sorted
0787-sliding-puzzle
0859-design-circular-deque
0870-magic-squares-in-grid
0890-lemonade-change
0892-shortest-subarray-with-sum-at-least-k
0906-walking-robot-simulation
0921-spiral-matrix-iii
0948-sort-an-array
0999-regions-cut-by-slashes
1002-maximum-width-ramp
1147-flip-columns-for-maximum-number-of-equal-rows
1207-delete-nodes-and-return-forest
1240-stone-game-ii
1256-rank-transform-of-an-array
1293-three-consecutive-odds
1325-path-with-maximum-probability
1333-sort-the-jumbled-numbers
1350-remove-sub-folders-from-the-filesystem
1402-count-square-submatrices-with-all-ones
1435-xor-queries-of-a-subarray
1468-check-if-n-and-its-double-exist
1496-lucky-numbers-in-a-matrix
1497-design-a-stack-with-increment-operation
1511-count-number-of-teams
1556-make-two-arrays-equal-by-reversing-subarrays
1570-final-prices-with-a-special-discount-in-a-shop
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1620-check-if-array-pairs-are-divisible-by-k
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1691-minimum-number-of-days-to-disconnect-island
1694-make-sum-divisible-by-p
1711-find-valid-matrix-given-row-and-column-sums
1720-crawler-log-folder
1741-sort-array-by-increasing-frequency
1755-defuse-the-bomb
1766-minimum-number-of-removals-to-make-mountain-array
1786-count-the-number-of-consistent-strings
1803-average-waiting-time
1886-minimum-limit-of-balls-in-a-bag
1917-maximum-average-pass-ratio
1923-sentence-similarity-iii
1940-maximum-xor-for-each-query
1951-find-the-winner-of-the-circular-game
1972-rotating-the-box
2006-find-the-student-that-will-replace-the-chalk
2035-count-sub-islands
2054-the-number-of-the-smallest-unoccupied-chair
2067-maximum-number-of-points-with-cost
2089-maximum-matrix-sum
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2163-kth-distinct-string-in-an-array
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
2232-adding-spaces-to-a-string
2255-minimum-swaps-to-group-all-1s-together-ii
2306-create-binary-tree-from-descriptions
2343-count-unguarded-cells-in-the-grid
2356-largest-combination-with-bitwise-and-greater-than-zero
2375-minimum-obstacle-removal-to-reach-corner
2411-spiral-matrix-iv
2472-build-a-matrix-with-conditions
2488-divide-intervals-into-minimum-number-of-groups
2494-sum-of-prefix-scores-of-strings
2502-sort-the-people
2503-longest-subarray-with-maximum-bitwise-and
2538-minimum-cost-to-make-array-equal
2545-height-of-binary-tree-after-subtree-removal-queries
2552-maximum-sum-of-distinct-subarrays-with-length-k
2554-minimum-total-distance-traveled
2586-longest-square-streak-in-an-array
2616-maximal-score-after-applying-k-operations
2640-maximum-number-of-integers-to-choose-from-a-range-i
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2699-count-the-number-of-fair-pairs
2711-minimum-time-to-visit-a-cell-in-a-grid
2716-prime-subtraction-operation
2718-minimum-operations-to-make-all-array-elements-equal
2727-number-of-senior-citizens
2755-extra-characters-in-a-string
2794-maximum-number-of-moves-in-a-grid
2846-robot-collisions
2868-continuous-subarrays
2891-maximum-beauty-of-an-array-after-applying-operation
3181-find-building-where-alice-and-bob-can-meet
3229-minimum-cost-to-make-array-equalindromic
3235-minimum-cost-to-convert-string-i
3291-find-if-array-can-be-sorted
3329-find-the-length-of-the-longest-common-prefix
3380-shortest-subarray-with-or-at-least-k-ii
3427-special-array-ii
3501-delete-nodes-from-linked-list-present-in-array
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

Design

0307-range-sum-query-mutable
0432-all-oone-data-structure
0729-my-calendar-i
0789-kth-largest-element-in-a-stream
0859-design-circular-deque
1497-design-a-stack-with-increment-operation

Binary Indexed Tree

0307-range-sum-query-mutable
1511-count-number-of-teams
3181-find-building-where-alice-and-bob-can-meet

Segment Tree

0307-range-sum-query-mutable
0729-my-calendar-i
3181-find-building-where-alice-and-bob-can-meet

Stack

0042-trapping-rain-water
0145-binary-tree-postorder-traversal
0726-number-of-atoms
0776-n-ary-tree-postorder-traversal
0780-max-chunks-to-make-sorted
0957-minimum-add-to-make-parentheses-valid
1002-maximum-width-ramp
1197-parsing-a-boolean-expression
1298-reverse-substrings-between-each-pair-of-parentheses
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
1720-crawler-log-folder
1818-maximum-score-from-removing-substrings
2095-minimum-number-of-swaps-to-make-the-string-balanced
2800-minimum-string-length-after-removing-substrings
2846-robot-collisions
3181-find-building-where-alice-and-bob-can-meet

Monotonic Stack

0042-trapping-rain-water
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
3181-find-building-where-alice-and-bob-can-meet

Hash Table

0001-two-sum
0049-group-anagrams
0128-longest-consecutive-sequence
0133-clone-graph
0139-word-break
0217-contains-duplicate
0264-ugly-number-ii
0350-intersection-of-two-arrays-ii
0432-all-oone-data-structure
0632-smallest-range-covering-elements-from-k-lists
0726-number-of-atoms
0870-magic-squares-in-grid
0906-walking-robot-simulation
0920-uncommon-words-from-two-sentences
0984-most-stones-removed-with-same-row-or-column
0999-regions-cut-by-slashes
1147-flip-columns-for-maximum-number-of-equal-rows
1207-delete-nodes-and-return-forest
1256-rank-transform-of-an-array
1468-check-if-n-and-its-double-exist
1473-find-the-longest-substring-containing-vowels-in-even-counts
1556-make-two-arrays-equal-by-reversing-subarrays
1620-check-if-array-pairs-are-divisible-by-k
1694-make-sum-divisible-by-p
1715-split-a-string-into-the-max-number-of-unique-substrings
1741-sort-array-by-increasing-frequency
1786-count-the-number-of-consistent-strings
2054-the-number-of-the-smallest-unoccupied-chair
2163-kth-distinct-string-in-an-array
2300-construct-string-with-repeat-limit
2306-create-binary-tree-from-descriptions
2356-largest-combination-with-bitwise-and-greater-than-zero
2502-sort-the-people
2552-maximum-sum-of-distinct-subarrays-with-length-k
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
2755-extra-characters-in-a-string
3267-find-longest-special-substring-that-occurs-thrice-i
3276-minimum-number-of-pushes-to-type-word-ii
3329-find-the-length-of-the-longest-common-prefix
3501-delete-nodes-from-linked-list-present-in-array

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0300-longest-increasing-subsequence
0350-intersection-of-two-arrays-ii
0719-find-k-th-smallest-pair-distance
0729-my-calendar-i
0892-shortest-subarray-with-sum-at-least-k
1468-check-if-n-and-its-double-exist
1615-range-sum-of-sorted-subarray-sums
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
2006-find-the-student-that-will-replace-the-chalk
2164-two-best-non-overlapping-events
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2538-minimum-cost-to-make-array-equal
2586-longest-square-streak-in-an-array
2640-maximum-number-of-integers-to-choose-from-a-range-i
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation
2718-minimum-operations-to-make-all-array-elements-equal
2891-maximum-beauty-of-an-array-after-applying-operation
3181-find-building-where-alice-and-bob-can-meet
3267-find-longest-special-substring-that-occurs-thrice-i
3427-special-array-ii

Linked List

0432-all-oone-data-structure
0725-split-linked-list-in-parts
0859-design-circular-deque
2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2299-merge-nodes-in-between-zeros
2411-spiral-matrix-iv
2903-insert-greatest-common-divisors-in-linked-list
3501-delete-nodes-from-linked-list-present-in-array

Simulation

0592-fraction-addition-and-subtraction
0906-walking-robot-simulation
0921-spiral-matrix-iii
1642-water-bottles
1667-find-kth-bit-in-nth-binary-string
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2006-find-the-student-that-will-replace-the-chalk
2076-sum-of-digits-of-string-after-convert
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2232-adding-spaces-to-a-string
2299-merge-nodes-in-between-zeros
2343-count-unguarded-cells-in-the-grid
2411-spiral-matrix-iv
2645-pass-the-pillow
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2800-minimum-string-length-after-removing-substrings
2846-robot-collisions
3555-final-array-state-after-k-multiplication-operations-i

Recursion

0010-regular-expression-matching
0241-different-ways-to-add-parentheses
0273-integer-to-english-words
1197-parsing-a-boolean-expression
1667-find-kth-bit-in-nth-binary-string
1951-find-the-winner-of-the-circular-game

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
0948-sort-an-array

Math

0062-unique-paths
0241-different-ways-to-add-parentheses
0264-ugly-number-ii
0273-integer-to-english-words
0371-sum-of-two-integers
0453-minimum-moves-to-equal-array-elements
0462-minimum-moves-to-equal-array-elements-ii
0539-minimum-time-difference
0564-find-the-closest-palindrome
0592-fraction-addition-and-subtraction
0650-2-keys-keyboard
0670-maximum-swap
0870-magic-squares-in-grid
1240-stone-game-ii
1642-water-bottles
1951-find-the-winner-of-the-circular-game
2155-find-missing-observations
2645-pass-the-pillow
2716-prime-subtraction-operation
2903-insert-greatest-common-divisors-in-linked-list
3229-minimum-cost-to-make-array-equalindromic
3555-final-array-state-after-k-multiplication-operations-i

Combinatorics

0062-unique-paths

Matrix

0063-unique-paths-ii
0787-sliding-puzzle
0870-magic-squares-in-grid
0921-spiral-matrix-iii
0999-regions-cut-by-slashes
1147-flip-columns-for-maximum-number-of-equal-rows
1402-count-square-submatrices-with-all-ones
1496-lucky-numbers-in-a-matrix
1691-minimum-number-of-days-to-disconnect-island
1711-find-valid-matrix-given-row-and-column-sums
1972-rotating-the-box
2035-count-sub-islands
2089-maximum-matrix-sum
2132-convert-1d-array-into-2d-array
2343-count-unguarded-cells-in-the-grid
2375-minimum-obstacle-removal-to-reach-corner
2411-spiral-matrix-iv
2472-build-a-matrix-with-conditions
2711-minimum-time-to-visit-a-cell-in-a-grid
2794-maximum-number-of-moves-in-a-grid

Queue

0859-design-circular-deque
0892-shortest-subarray-with-sum-at-least-k
1951-find-the-winner-of-the-circular-game
2868-continuous-subarrays

Tree

0145-binary-tree-postorder-traversal
0236-lowest-common-ancestor-of-a-binary-tree
0776-n-ary-tree-postorder-traversal
0789-kth-largest-element-in-a-stream
0988-flip-equivalent-binary-trees
1207-delete-nodes-and-return-forest
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions
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
3058-maximum-number-of-k-divisible-components

Binary Tree

0145-binary-tree-postorder-traversal
0236-lowest-common-ancestor-of-a-binary-tree
0789-kth-largest-element-in-a-stream
0988-flip-equivalent-binary-trees
1207-delete-nodes-and-return-forest
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions
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

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0920-uncommon-words-from-two-sentences
0948-sort-an-array
1620-check-if-array-pairs-are-divisible-by-k
1786-count-the-number-of-consistent-strings
2163-kth-distinct-string-in-an-array
2300-construct-string-with-repeat-limit
2356-largest-combination-with-bitwise-and-greater-than-zero
2494-sum-of-prefix-scores-of-strings
3267-find-longest-special-substring-that-occurs-thrice-i
3276-minimum-number-of-pushes-to-type-word-ii

Shortest Path

1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2171-second-minimum-time-to-reach-destination
2375-minimum-obstacle-removal-to-reach-corner
2711-minimum-time-to-visit-a-cell-in-a-grid
2803-modify-graph-edge-weights
3235-minimum-cost-to-convert-string-i

Bit Manipulation

0371-sum-of-two-integers
0476-number-complement
1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1786-count-the-number-of-consistent-strings
1940-maximum-xor-for-each-query
2170-count-number-of-maximum-bitwise-or-subsets
2323-minimum-bit-flips-to-convert-number
2356-largest-combination-with-bitwise-and-greater-than-zero
2503-longest-subarray-with-maximum-bitwise-and
3291-find-if-array-can-be-sorted
3380-shortest-subarray-with-or-at-least-k-ii
3394-minimum-array-end

Trie

0139-word-break
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
3329-find-the-length-of-the-longest-common-prefix

Memoization

0139-word-break
0241-different-ways-to-add-parentheses

Sliding Window

0632-smallest-range-covering-elements-from-k-lists
0892-shortest-subarray-with-sum-at-least-k
1755-defuse-the-bomb
2255-minimum-swaps-to-group-all-1s-together-ii
2552-maximum-sum-of-distinct-subarrays-with-length-k
2599-take-k-of-each-character-from-left-and-right
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
3522-find-the-power-of-k-size-subarrays-i

Strongly Connected Component

1691-minimum-number-of-days-to-disconnect-island

Binary Search Tree

0789-kth-largest-element-in-a-stream

Data Stream

0789-kth-largest-element-in-a-stream

Backtracking

0040-combination-sum-ii
1715-split-a-string-into-the-max-number-of-unique-substrings
2170-count-number-of-maximum-bitwise-or-subsets

Game Theory

1240-stone-game-ii

Number Theory

2716-prime-subtraction-operation
2903-insert-greatest-common-divisors-in-linked-list

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and

Ordered Set

0729-my-calendar-i
2868-continuous-subarrays

Doubly-Linked List

0432-all-oone-data-structure

Enumeration

2170-count-number-of-maximum-bitwise-or-subsets

Monotonic Queue

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

Eulerian Circuit

2201-valid-arrangement-of-pairs