Skip to content

Divyanshu9794/LeetcodePotd

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

Union Find

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
2793-count-the-number-of-complete-components

Graph

0984-most-stones-removed-with-same-row-or-column
1325-path-with-maximum-probability
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
2090-number-of-ways-to-arrive-at-destination
2171-second-minimum-time-to-reach-destination
2220-find-all-possible-recipes-from-given-supplies
2472-build-a-matrix-with-conditions
2793-count-the-number-of-complete-components
2803-modify-graph-edge-weights
3235-minimum-cost-to-convert-string-i

Array

0040-combination-sum-ii
0179-largest-number
0350-intersection-of-two-arrays-ii
0368-largest-divisible-subset
0416-partition-equal-subset-sum
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
0731-my-calendar-ii
0797-rabbits-in-forest
0859-design-circular-deque
0870-magic-squares-in-grid
0890-lemonade-change
0905-length-of-longest-fibonacci-subsequence
0906-walking-robot-simulation
0921-spiral-matrix-iii
0999-regions-cut-by-slashes
1002-maximum-width-ramp
1196-filling-bookcase-shelves
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
1335-maximum-candies-allocated-to-k-children
1350-remove-sub-folders-from-the-filesystem
1402-count-square-submatrices-with-all-ones
1435-xor-queries-of-a-subarray
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
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
1656-count-good-triplets
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
1786-count-the-number-of-consistent-strings
1803-average-waiting-time
1923-sentence-similarity-iii
1940-maximum-xor-for-each-query
1951-find-the-winner-of-the-circular-game
1993-sum-of-all-subset-xor-totals
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
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2163-kth-distinct-string-in-an-array
2170-count-number-of-maximum-bitwise-or-subsets
2220-find-all-possible-recipes-from-given-supplies
2249-count-the-hidden-sequences
2255-minimum-swaps-to-group-all-1s-together-ii
2262-solving-questions-with-brainpower
2265-partition-array-according-to-given-pivot
2277-count-equal-and-divisible-pairs-in-an-array
2306-create-binary-tree-from-descriptions
2308-divide-array-into-equal-pairs
2358-number-of-ways-to-split-array
2394-count-subarrays-with-score-less-than-k
2411-spiral-matrix-iv
2472-build-a-matrix-with-conditions
2478-longest-nice-subarray
2488-divide-intervals-into-minimum-number-of-groups
2494-sum-of-prefix-scores-of-strings
2503-longest-subarray-with-maximum-bitwise-and
2545-height-of-binary-tree-after-subtree-removal-queries
2551-apply-operations-to-an-array
2554-minimum-total-distance-traveled
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2616-maximal-score-after-applying-k-operations
2626-count-the-number-of-good-subarrays
2681-put-marbles-in-bags
2691-count-vowel-strings-in-ranges
2699-count-the-number-of-fair-pairs
2707-merge-two-2d-arrays-by-summing-values
2716-prime-subtraction-operation
2727-number-of-senior-citizens
2755-extra-characters-in-a-string
2794-maximum-number-of-moves-in-a-grid
2846-robot-collisions
2856-count-complete-subarrays-in-an-array
2915-count-of-interesting-subarrays
3152-maximum-value-of-an-ordered-triplet-ii
3154-maximum-value-of-an-ordered-triplet-i
3213-count-subarrays-where-max-element-appears-at-least-k-times
3227-find-missing-and-repeated-values
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
3430-count-days-without-meetings
3483-alternating-groups-ii
3501-delete-nodes-from-linked-list-present-in-array
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
3685-count-subarrays-of-length-three-with-a-condition
3778-transform-array-by-parity

Hash Table

0264-ugly-number-ii
0350-intersection-of-two-arrays-ii
0432-all-oone-data-structure
0567-permutation-in-string
0632-smallest-range-covering-elements-from-k-lists
0726-number-of-atoms
0768-partition-labels
0797-rabbits-in-forest
0870-magic-squares-in-grid
0905-length-of-longest-fibonacci-subsequence
0906-walking-robot-simulation
0920-uncommon-words-from-two-sentences
0984-most-stones-removed-with-same-row-or-column
0999-regions-cut-by-slashes
1207-delete-nodes-and-return-forest
1218-lowest-common-ancestor-of-deepest-leaves
1256-rank-transform-of-an-array
1460-number-of-substrings-containing-all-three-characters
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
2220-find-all-possible-recipes-from-given-supplies
2306-create-binary-tree-from-descriptions
2308-divide-array-into-equal-pairs
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2626-count-the-number-of-good-subarrays
2677-cousins-in-binary-tree-ii
2707-merge-two-2d-arrays-by-summing-values
2755-extra-characters-in-a-string
2856-count-complete-subarrays-in-an-array
2915-count-of-interesting-subarrays
3227-find-missing-and-repeated-values
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
3548-find-the-count-of-good-integers
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3570-count-of-substrings-containing-every-vowel-and-k-consonants-i
3621-minimum-operations-to-make-array-values-equal-to-k
3656-minimum-number-of-operations-to-make-elements-in-array-distinct

Two Pointers

0350-intersection-of-two-arrays-ii
0567-permutation-in-string
0719-find-k-th-smallest-pair-distance
0768-partition-labels
1615-range-sum-of-sorted-subarray-sums
1923-sentence-similarity-iii
2095-minimum-number-of-swaps-to-make-the-string-balanced
2265-partition-array-according-to-given-pivot
2414-move-pieces-to-obtain-a-string
2488-divide-intervals-into-minimum-number-of-groups
2551-apply-operations-to-an-array
2581-divide-players-into-teams-of-equal-skill
2699-count-the-number-of-fair-pairs
2707-merge-two-2d-arrays-by-summing-values
3195-separate-black-and-white-balls

Binary Search

0350-intersection-of-two-arrays-ii
0719-find-k-th-smallest-pair-distance
0729-my-calendar-i
0731-my-calendar-ii
1335-maximum-candies-allocated-to-k-children
1615-range-sum-of-sorted-subarray-sums
2006-find-the-student-that-will-replace-the-chalk
2394-count-subarrays-with-score-less-than-k
2586-longest-square-streak-in-an-array
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation
3643-zero-array-transformation-ii

Sorting

0179-largest-number
0350-intersection-of-two-arrays-ii
0368-largest-divisible-subset
0539-minimum-time-difference
0632-smallest-range-covering-elements-from-k-lists
0719-find-k-th-smallest-pair-distance
0726-number-of-atoms
1256-rank-transform-of-an-array
1333-sort-the-jumbled-numbers
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
2488-divide-intervals-into-minimum-number-of-groups
2554-minimum-total-distance-traveled
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2646-kth-largest-sum-in-a-binary-tree
2681-put-marbles-in-bags
2699-count-the-number-of-fair-pairs
2846-robot-collisions
3276-minimum-number-of-pushes-to-type-word-ii
3291-find-if-array-can-be-sorted
3430-count-days-without-meetings
3778-transform-array-by-parity

Greedy

0179-largest-number
0624-maximum-distance-in-arrays
0632-smallest-range-covering-elements-from-k-lists
0670-maximum-swap
0768-partition-labels
0797-rabbits-in-forest
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
1818-maximum-score-from-removing-substrings
2095-minimum-number-of-swaps-to-make-the-string-balanced
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
2681-put-marbles-in-bags
2716-prime-subtraction-operation
3195-separate-black-and-white-balls
3276-minimum-number-of-pushes-to-type-word-ii

Linked List

0432-all-oone-data-structure
0725-split-linked-list-in-parts
0859-design-circular-deque
1484-linked-list-in-binary-tree
2182-find-the-minimum-and-maximum-number-of-nodes-between-critical-points
2299-merge-nodes-in-between-zeros
2411-spiral-matrix-iv
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
2265-partition-array-according-to-given-pivot
2299-merge-nodes-in-between-zeros
2411-spiral-matrix-iv
2551-apply-operations-to-an-array
2645-pass-the-pillow
2800-minimum-string-length-after-removing-substrings
2846-robot-collisions

Math

0241-different-ways-to-add-parentheses
0264-ugly-number-ii
0273-integer-to-english-words
0368-largest-divisible-subset
0539-minimum-time-difference
0564-find-the-closest-palindrome
0592-fraction-addition-and-subtraction
0650-2-keys-keyboard
0670-maximum-swap
0797-rabbits-in-forest
0870-magic-squares-in-grid
1240-stone-game-ii
1642-water-bottles
1889-check-if-number-is-a-sum-of-powers-of-three
1951-find-the-winner-of-the-circular-game
1993-sum-of-all-subset-xor-totals
2050-count-good-numbers
2155-find-missing-observations
2610-closest-prime-numbers-in-range
2645-pass-the-pillow
2649-count-total-number-of-colored-cells
2716-prime-subtraction-operation
2998-count-symmetric-integers
3227-find-missing-and-repeated-values
3243-count-the-number-of-powerful-integers
3548-find-the-count-of-good-integers

Recursion

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
2050-count-good-numbers

Queue

0859-design-circular-deque
1951-find-the-winner-of-the-circular-game

String

0038-count-and-say
0179-largest-number
0214-shortest-palindrome
0241-different-ways-to-add-parentheses
0273-integer-to-english-words
0539-minimum-time-difference
0564-find-the-closest-palindrome
0567-permutation-in-string
0592-fraction-addition-and-subtraction
0664-strange-printer
0726-number-of-atoms
0768-partition-labels
0812-rotate-string
0920-uncommon-words-from-two-sentences
0957-minimum-add-to-make-parentheses-valid
1197-parsing-a-boolean-expression
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
1460-number-of-substrings-containing-all-three-characters
1473-find-the-longest-substring-containing-vowels-in-even-counts
1537-maximum-score-after-splitting-a-string
1667-find-kth-bit-in-nth-binary-string
1715-split-a-string-into-the-max-number-of-unique-substrings
1720-crawler-log-folder
1756-minimum-deletions-to-make-string-balanced
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
2220-find-all-possible-recipes-from-given-supplies
2414-move-pieces-to-obtain-a-string
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2494-sum-of-prefix-scores-of-strings
2580-circular-sentence
2691-count-vowel-strings-in-ranges
2727-number-of-senior-citizens
2755-extra-characters-in-a-string
2800-minimum-string-length-after-removing-substrings
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3195-separate-black-and-white-balls
3235-minimum-cost-to-convert-string-i
3243-count-the-number-of-powerful-integers
3276-minimum-number-of-pushes-to-type-word-ii
3329-find-the-length-of-the-longest-common-prefix
3451-string-compression-iii
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3570-count-of-substrings-containing-every-vowel-and-k-consonants-i

Stack

0145-binary-tree-postorder-traversal
0726-number-of-atoms
0776-n-ary-tree-postorder-traversal
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
1720-crawler-log-folder
1756-minimum-deletions-to-make-string-balanced
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

Tree

0145-binary-tree-postorder-traversal
0776-n-ary-tree-postorder-traversal
0789-kth-largest-element-in-a-stream
0988-flip-equivalent-binary-trees
1207-delete-nodes-and-return-forest
1218-lowest-common-ancestor-of-deepest-leaves
1484-linked-list-in-binary-tree
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions
2545-height-of-binary-tree-after-subtree-removal-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii

Binary Tree

0145-binary-tree-postorder-traversal
0789-kth-largest-element-in-a-stream
0988-flip-equivalent-binary-trees
1207-delete-nodes-and-return-forest
1218-lowest-common-ancestor-of-deepest-leaves
1484-linked-list-in-binary-tree
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions
2545-height-of-binary-tree-after-subtree-removal-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii

Depth-First Search

0145-binary-tree-postorder-traversal
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
1218-lowest-common-ancestor-of-deepest-leaves
1350-remove-sub-folders-from-the-filesystem
1484-linked-list-in-binary-tree
1653-number-of-good-leaf-nodes-pairs
1691-minimum-number-of-days-to-disconnect-island
2035-count-sub-islands
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2545-height-of-binary-tree-after-subtree-removal-queries
2677-cousins-in-binary-tree-ii
2793-count-the-number-of-complete-components

Matrix

0870-magic-squares-in-grid
0921-spiral-matrix-iii
0999-regions-cut-by-slashes
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
2035-count-sub-islands
2132-convert-1d-array-into-2d-array
2411-spiral-matrix-iv
2472-build-a-matrix-with-conditions
2794-maximum-number-of-moves-in-a-grid
3227-find-missing-and-repeated-values

Topological Sort

2090-number-of-ways-to-arrive-at-destination
2220-find-all-possible-recipes-from-given-supplies
2472-build-a-matrix-with-conditions

Dynamic Programming

0241-different-ways-to-add-parentheses
0264-ugly-number-ii
0368-largest-divisible-subset
0416-partition-equal-subset-sum
0650-2-keys-keyboard
0664-strange-printer
0905-length-of-longest-fibonacci-subsequence
1196-filling-bookcase-shelves
1240-stone-game-ii
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
1756-minimum-deletions-to-make-string-balanced
2067-maximum-number-of-points-with-cost
2090-number-of-ways-to-arrive-at-destination
2262-solving-questions-with-brainpower
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
3243-count-the-number-of-powerful-integers

Shortest Path

1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2090-number-of-ways-to-arrive-at-destination
2171-second-minimum-time-to-reach-destination
2803-modify-graph-edge-weights
3235-minimum-cost-to-convert-string-i

Breadth-First Search

0999-regions-cut-by-slashes
1218-lowest-common-ancestor-of-deepest-leaves
1484-linked-list-in-binary-tree
1691-minimum-number-of-days-to-disconnect-island
2035-count-sub-islands
2171-second-minimum-time-to-reach-destination
2545-height-of-binary-tree-after-subtree-removal-queries
2646-kth-largest-sum-in-a-binary-tree
2677-cousins-in-binary-tree-ii
2793-count-the-number-of-complete-components

Binary Indexed Tree

1511-count-number-of-teams

Sliding Window

0567-permutation-in-string
0632-smallest-range-covering-elements-from-k-lists
1460-number-of-substrings-containing-all-three-characters
2255-minimum-swaps-to-group-all-1s-together-ii
2394-count-subarrays-with-score-less-than-k
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2478-longest-nice-subarray
2626-count-the-number-of-good-subarrays
2856-count-complete-subarrays-in-an-array
3213-count-subarrays-where-max-element-appears-at-least-k-times
3380-shortest-subarray-with-or-at-least-k-ii
3483-alternating-groups-ii
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3570-count-of-substrings-containing-every-vowel-and-k-consonants-i

Counting

0920-uncommon-words-from-two-sentences
1620-check-if-array-pairs-are-divisible-by-k
1786-count-the-number-of-consistent-strings
2163-kth-distinct-string-in-an-array
2308-divide-array-into-equal-pairs
2494-sum-of-prefix-scores-of-strings
3276-minimum-number-of-pushes-to-type-word-ii
3778-transform-array-by-parity

Strongly Connected Component

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

Design

0432-all-oone-data-structure
0729-my-calendar-i
0731-my-calendar-ii
0789-kth-largest-element-in-a-stream
0859-design-circular-deque
1497-design-a-stack-with-increment-operation

Binary Search Tree

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

Heap (Priority Queue)

0264-ugly-number-ii
0632-smallest-range-covering-elements-from-k-lists
0789-kth-largest-element-in-a-stream
1304-longest-happy-string
1325-path-with-maximum-probability
2054-the-number-of-the-smallest-unoccupied-chair
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
2681-put-marbles-in-bags
2803-modify-graph-edge-weights

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
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets

Prefix Sum

0731-my-calendar-ii
1240-stone-game-ii
1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1537-maximum-score-after-splitting-a-string
1694-make-sum-divisible-by-p
1940-maximum-xor-for-each-query
2006-find-the-student-that-will-replace-the-chalk
2249-count-the-hidden-sequences
2358-number-of-ways-to-split-array
2394-count-subarrays-with-score-less-than-k
2488-divide-intervals-into-minimum-number-of-groups
2691-count-vowel-strings-in-ranges
2915-count-of-interesting-subarrays
3643-zero-array-transformation-ii

Game Theory

1240-stone-game-ii

Bit Manipulation

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
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
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

Brainteaser

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

Memoization

0241-different-ways-to-add-parentheses

Rolling Hash

0214-shortest-palindrome

String Matching

0214-shortest-palindrome
0812-rotate-string

Hash Function

0214-shortest-palindrome

Trie

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

Segment Tree

0729-my-calendar-i
0731-my-calendar-ii

Ordered Set

0729-my-calendar-i
0731-my-calendar-ii

Doubly-Linked List

0432-all-oone-data-structure

Monotonic Stack

1002-maximum-width-ramp

Enumeration

1656-count-good-triplets
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets
2998-count-symmetric-integers
3548-find-the-count-of-good-integers

Number Theory

2610-closest-prime-numbers-in-range
2716-prime-subtraction-operation

Combinatorics

1993-sum-of-all-subset-xor-totals
3548-find-the-count-of-good-integers

About

Daily leetcode Problem Solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages