Skip to content

Saieiei/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

https://leetcode.com/u/saiei/

Two Pointers

0075-sort-colors
0633-sum-of-square-numbers
0853-most-profit-assigning-work
2572-append-characters-to-string-to-make-subsequence

String

0409-longest-palindrome
0415-add-strings
2021-remove-all-occurrences-of-a-substring
2572-append-characters-to-string-to-make-subsequence

Greedy

0409-longest-palindrome
0853-most-profit-assigning-work
0876-hand-of-straights
2572-append-characters-to-string-to-make-subsequence

Hash Table

0409-longest-palindrome
0876-hand-of-straights
1370-count-number-of-nice-subarrays

Array

0039-combination-sum
0040-combination-sum-ii
0075-sort-colors
0121-best-time-to-buy-and-sell-stock
0853-most-profit-assigning-work
0876-hand-of-straights
0948-sort-an-array
1370-count-number-of-nice-subarrays
1605-minimum-number-of-days-to-make-m-bouquets
1758-distribute-repeating-integers

Sorting

0075-sort-colors
0853-most-profit-assigning-work
0876-hand-of-straights
0948-sort-an-array

Math

0279-perfect-squares
0415-add-strings
0633-sum-of-square-numbers
1370-count-number-of-nice-subarrays

Simulation

0415-add-strings

Dynamic Programming

0121-best-time-to-buy-and-sell-stock
0279-perfect-squares
1758-distribute-repeating-integers

Breadth-First Search

0279-perfect-squares

Binary Search

0633-sum-of-square-numbers
0853-most-profit-assigning-work
1605-minimum-number-of-days-to-make-m-bouquets

Divide and Conquer

0948-sort-an-array

Heap (Priority Queue)

0948-sort-an-array

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Backtracking

0039-combination-sum
0040-combination-sum-ii
1758-distribute-repeating-integers

Bit Manipulation

1758-distribute-repeating-integers

Bitmask

1758-distribute-repeating-integers

Sliding Window

1370-count-number-of-nice-subarrays

Linked List

0206-reverse-linked-list

Recursion

0206-reverse-linked-list

LeetCode Topics

Greedy

0134-gas-station
0316-remove-duplicate-letters
0624-maximum-distance-in-arrays
0670-maximum-swap
0890-lemonade-change
0957-minimum-add-to-make-parentheses-valid
1285-balance-a-binary-search-tree
1304-longest-happy-string
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1766-minimum-number-of-removals-to-make-mountain-array
1818-maximum-score-from-removing-substrings
2095-minimum-number-of-swaps-to-make-the-string-balanced
2379-maximum-total-importance-of-roads
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
3195-separate-black-and-white-balls
3276-minimum-number-of-pushes-to-type-word-ii

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
2171-second-minimum-time-to-reach-destination
2379-maximum-total-importance-of-roads
2803-modify-graph-edge-weights
3235-minimum-cost-to-convert-string-i

Sorting

0148-sort-list
0350-intersection-of-two-arrays-ii
0539-minimum-time-difference
0719-find-k-th-smallest-pair-distance
0726-number-of-atoms
0883-car-fleet
0948-sort-an-array
0987-reveal-cards-in-increasing-order
1029-vertical-order-traversal-of-a-binary-tree
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
2379-maximum-total-importance-of-roads
2488-divide-intervals-into-minimum-number-of-groups
2502-sort-the-people
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
2846-robot-collisions
3276-minimum-number-of-pushes-to-type-word-ii
3291-find-if-array-can-be-sorted

Heap (Priority Queue)

0239-sliding-window-maximum
0264-ugly-number-ii
0789-kth-largest-element-in-a-stream
0948-sort-an-array
1304-longest-happy-string
1325-path-with-maximum-probability
2054-the-number-of-the-smallest-unoccupied-chair
2379-maximum-total-importance-of-roads
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
2803-modify-graph-edge-weights

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0142-linked-list-cycle-ii
0264-ugly-number-ii
0350-intersection-of-two-arrays-ii
0432-all-oone-data-structure
0567-permutation-in-string
0652-find-duplicate-subtrees
0653-two-sum-iv-input-is-a-bst
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
1029-vertical-order-traversal-of-a-binary-tree
1207-delete-nodes-and-return-forest
1256-rank-transform-of-an-array
1267-remove-zero-sum-consecutive-nodes-from-linked-list
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
2306-create-binary-tree-from-descriptions
2356-largest-combination-with-bitwise-and-greater-than-zero
2502-sort-the-people
2581-divide-players-into-teams-of-equal-skill
2586-longest-square-streak-in-an-array
2677-cousins-in-binary-tree-ii
2755-extra-characters-in-a-string
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

Linked List

0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0142-linked-list-cycle-ii
0148-sort-list
0432-all-oone-data-structure
0725-split-linked-list-in-parts
0859-design-circular-deque
1267-remove-zero-sum-consecutive-nodes-from-linked-list
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
2903-insert-greatest-common-divisors-in-linked-list
3501-delete-nodes-from-linked-list-present-in-array

Two Pointers

0027-remove-element
0061-rotate-list
0142-linked-list-cycle-ii
0148-sort-list
0344-reverse-string
0350-intersection-of-two-arrays-ii
0567-permutation-in-string
0653-two-sum-iv-input-is-a-bst
0719-find-k-th-smallest-pair-distance
1615-range-sum-of-sorted-subarray-sums
1923-sentence-similarity-iii
2095-minimum-number-of-swaps-to-make-the-string-balanced
2488-divide-intervals-into-minimum-number-of-groups
2581-divide-players-into-teams-of-equal-skill
3195-separate-black-and-white-balls

Recursion

0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0241-different-ways-to-add-parentheses
0273-integer-to-english-words
0394-decode-string
1197-parsing-a-boolean-expression
1951-find-the-winner-of-the-circular-game

Divide and Conquer

0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0148-sort-list
0948-sort-an-array
1285-balance-a-binary-search-tree

Merge Sort

0148-sort-list
0948-sort-an-array

Array

0001-two-sum
0027-remove-element
0035-search-insert-position
0040-combination-sum-ii
0053-maximum-subarray
0084-largest-rectangle-in-histogram
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0134-gas-station
0209-minimum-size-subarray-sum
0239-sliding-window-maximum
0350-intersection-of-two-arrays-ii
0539-minimum-time-difference
0624-maximum-distance-in-arrays
0719-find-k-th-smallest-pair-distance
0729-my-calendar-i
0731-my-calendar-ii
0735-asteroid-collision
0739-daily-temperatures
0859-design-circular-deque
0870-magic-squares-in-grid
0883-car-fleet
0890-lemonade-change
0906-walking-robot-simulation
0909-stone-game
0921-spiral-matrix-iii
0948-sort-an-array
0987-reveal-cards-in-increasing-order
0999-regions-cut-by-slashes
1002-maximum-width-ramp
1025-minimum-cost-for-tickets
1050-construct-binary-search-tree-from-preorder-traversal
1196-filling-bookcase-shelves
1207-delete-nodes-and-return-forest
1231-replace-elements-with-greatest-element-on-right-side
1240-stone-game-ii
1256-rank-transform-of-an-array
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
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
1691-minimum-number-of-days-to-disconnect-island
1694-make-sum-divisible-by-p
1720-crawler-log-folder
1741-sort-array-by-increasing-frequency
1766-minimum-number-of-removals-to-make-mountain-array
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
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
2155-find-missing-observations
2163-kth-distinct-string-in-an-array
2170-count-number-of-maximum-bitwise-or-subsets
2255-minimum-swaps-to-group-all-1s-together-ii
2306-create-binary-tree-from-descriptions
2356-largest-combination-with-bitwise-and-greater-than-zero
2411-spiral-matrix-iv
2432-number-of-zero-filled-subarrays
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
2545-height-of-binary-tree-after-subtree-removal-queries
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
2727-number-of-senior-citizens
2755-extra-characters-in-a-string
2794-maximum-number-of-moves-in-a-grid
2846-robot-collisions
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
3501-delete-nodes-from-linked-list-present-in-array

Binary Search

0035-search-insert-position
0209-minimum-size-subarray-sum
0350-intersection-of-two-arrays-ii
0719-find-k-th-smallest-pair-distance
0729-my-calendar-i
0731-my-calendar-ii
1615-range-sum-of-sorted-subarray-sums
1766-minimum-number-of-removals-to-make-mountain-array
2006-find-the-student-that-will-replace-the-chalk
2586-longest-square-streak-in-an-array

Simulation

0592-fraction-addition-and-subtraction
0735-asteroid-collision
0906-walking-robot-simulation
0921-spiral-matrix-iii
0987-reveal-cards-in-increasing-order
1642-water-bottles
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
2155-find-missing-observations
2299-merge-nodes-in-between-zeros
2408-number-of-people-aware-of-a-secret
2411-spiral-matrix-iv
2800-minimum-string-length-after-removing-substrings
2846-robot-collisions

String

0003-longest-substring-without-repeating-characters
0071-simplify-path
0214-shortest-palindrome
0241-different-ways-to-add-parentheses
0273-integer-to-english-words
0316-remove-duplicate-letters
0344-reverse-string
0394-decode-string
0516-longest-palindromic-subsequence
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
0812-rotate-string
0920-uncommon-words-from-two-sentences
0957-minimum-add-to-make-parentheses-valid
1045-check-if-word-is-valid-after-substitutions
1128-remove-all-adjacent-duplicates-in-string
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
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
2494-sum-of-prefix-scores-of-strings
2502-sort-the-people
2580-circular-sentence
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
3276-minimum-number-of-pushes-to-type-word-ii
3329-find-the-length-of-the-longest-common-prefix
3451-string-compression-iii

Math

0241-different-ways-to-add-parentheses
0264-ugly-number-ii
0273-integer-to-english-words
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
0909-stone-game
1240-stone-game-ii
1642-water-bottles
1951-find-the-winner-of-the-circular-game
2155-find-missing-observations
2432-number-of-zero-filled-subarrays
2903-insert-greatest-common-divisors-in-linked-list

Stack

0071-simplify-path
0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0155-min-stack
0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0316-remove-duplicate-letters
0394-decode-string
0726-number-of-atoms
0735-asteroid-collision
0739-daily-temperatures
0776-n-ary-tree-postorder-traversal
0883-car-fleet
0957-minimum-add-to-make-parentheses-valid
1002-maximum-width-ramp
1045-check-if-word-is-valid-after-substitutions
1050-construct-binary-search-tree-from-preorder-traversal
1128-remove-all-adjacent-duplicates-in-string
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

Design

0155-min-stack
0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0432-all-oone-data-structure
0729-my-calendar-i
0731-my-calendar-ii
0789-kth-largest-element-in-a-stream
0859-design-circular-deque
0969-number-of-recent-calls
1497-design-a-stack-with-increment-operation

Monotonic Stack

0084-largest-rectangle-in-histogram
0316-remove-duplicate-letters
0739-daily-temperatures
0883-car-fleet
1002-maximum-width-ramp
1050-construct-binary-search-tree-from-preorder-traversal

Queue

0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0239-sliding-window-maximum
0859-design-circular-deque
0969-number-of-recent-calls
0987-reveal-cards-in-increasing-order
1951-find-the-winner-of-the-circular-game
2408-number-of-people-aware-of-a-secret

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0239-sliding-window-maximum
0567-permutation-in-string
2255-minimum-swaps-to-group-all-1s-together-ii
3380-shortest-subarray-with-or-at-least-k-ii

Monotonic Queue

0239-sliding-window-maximum

Data Stream

0789-kth-largest-element-in-a-stream
0969-number-of-recent-calls

Dynamic Programming

0053-maximum-subarray
0241-different-ways-to-add-parentheses
0264-ugly-number-ii
0516-longest-palindromic-subsequence
0650-2-keys-keyboard
0664-strange-printer
0909-stone-game
1025-minimum-cost-for-tickets
1196-filling-bookcase-shelves
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
1756-minimum-deletions-to-make-string-balanced
1766-minimum-number-of-removals-to-make-mountain-array
2067-maximum-number-of-points-with-cost
2408-number-of-people-aware-of-a-secret
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

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0112-path-sum
0113-path-sum-ii
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0437-path-sum-iii
0543-diameter-of-binary-tree
0652-find-duplicate-subtrees
0653-two-sum-iv-input-is-a-bst
0776-n-ary-tree-postorder-traversal
0789-kth-largest-element-in-a-stream
0975-range-sum-of-bst
0988-flip-equivalent-binary-trees
1029-vertical-order-traversal-of-a-binary-tree
1050-construct-binary-search-tree-from-preorder-traversal
1207-delete-nodes-and-return-forest
1285-balance-a-binary-search-tree
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

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0112-path-sum
0113-path-sum-ii
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0437-path-sum-iii
0543-diameter-of-binary-tree
0652-find-duplicate-subtrees
0653-two-sum-iv-input-is-a-bst
0789-kth-largest-element-in-a-stream
0975-range-sum-of-bst
0988-flip-equivalent-binary-trees
1029-vertical-order-traversal-of-a-binary-tree
1050-construct-binary-search-tree-from-preorder-traversal
1207-delete-nodes-and-return-forest
1285-balance-a-binary-search-tree
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

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0112-path-sum
0113-path-sum-ii
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0386-lexicographical-numbers
0437-path-sum-iii
0543-diameter-of-binary-tree
0652-find-duplicate-subtrees
0653-two-sum-iv-input-is-a-bst
0776-n-ary-tree-postorder-traversal
0975-range-sum-of-bst
0984-most-stones-removed-with-same-row-or-column
0988-flip-equivalent-binary-trees
0999-regions-cut-by-slashes
1029-vertical-order-traversal-of-a-binary-tree
1207-delete-nodes-and-return-forest
1285-balance-a-binary-search-tree
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

Breadth-First Search

0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0112-path-sum
0653-two-sum-iv-input-is-a-bst
0999-regions-cut-by-slashes
1029-vertical-order-traversal-of-a-binary-tree
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

Backtracking

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

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
2035-count-sub-islands
2411-spiral-matrix-iv
2794-maximum-number-of-moves-in-a-grid

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
2356-largest-combination-with-bitwise-and-greater-than-zero
2494-sum-of-prefix-scores-of-strings
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
2803-modify-graph-edge-weights
3235-minimum-cost-to-convert-string-i

Binary Indexed Tree

1511-count-number-of-teams

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0653-two-sum-iv-input-is-a-bst
0789-kth-largest-element-in-a-stream
0975-range-sum-of-bst
1050-construct-binary-search-tree-from-preorder-traversal
1285-balance-a-binary-search-tree

Union Find

0984-most-stones-removed-with-same-row-or-column
0999-regions-cut-by-slashes
2035-count-sub-islands

Strongly Connected Component

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

Prefix Sum

0209-minimum-size-subarray-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
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

Game Theory

0909-stone-game
1240-stone-game-ii

Bit Manipulation

0476-number-complement
1054-complement-of-base-10-integer
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

Number Theory

2903-insert-greatest-common-divisors-in-linked-list

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

Enumeration

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

About

all leetcode problems i do

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published