Skip to content

Madhuj275/leetcodeque

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

Array

0015-3sum
0033-search-in-rotated-sorted-array
0042-trapping-rain-water
0046-permutations
0056-merge-intervals
0073-set-matrix-zeroes
0075-sort-colors
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0128-longest-consecutive-sequence
0154-find-minimum-in-rotated-sorted-array-ii
0188-best-time-to-buy-and-sell-stock-iv
0200-number-of-islands
0212-word-search-ii
0215-kth-largest-element-in-an-array
0218-the-skyline-problem
0220-contains-duplicate-iii
0239-sliding-window-maximum
0283-move-zeroes
0312-burst-balloons
0315-count-of-smaller-numbers-after-self
0321-create-maximum-number
0327-count-of-range-sum
0329-longest-increasing-path-in-a-matrix
0330-patching-array
0335-self-crossing
0336-palindrome-pairs
0347-top-k-frequent-elements
0354-russian-doll-envelopes
0363-max-sum-of-rectangle-no-larger-than-k
0368-largest-divisible-subset
0381-insert-delete-getrandom-o1-duplicates-allowed
0391-perfect-rectangle
0403-frog-jump
0406-queue-reconstruction-by-height
0407-trapping-rain-water-ii
0410-split-array-largest-sum
0413-arithmetic-slices
0417-pacific-atlantic-water-flow
0446-arithmetic-slices-ii-subsequence
0472-concatenated-words
0473-matchsticks-to-square
0474-ones-and-zeroes
0480-sliding-window-median
0486-predict-the-winner
0493-reverse-pairs
0621-task-scheduler
0630-course-schedule-iii
0632-smallest-range-covering-elements-from-k-lists
0673-number-of-longest-increasing-subsequence
0679-24-game
0682-baseball-game
0691-stickers-to-spell-word
0695-max-area-of-island
0739-daily-temperatures
0787-sliding-puzzle
0797-rabbits-in-forest
0833-bus-routes
0853-most-profit-assigning-work
0869-similar-string-groups
0945-snakes-and-ladders
0960-minimize-malware-spread
0985-bag-of-tokens
0989-largest-component-size-by-common-factor
1019-squares-of-a-sorted-array
1022-unique-paths-iii
1024-triples-with-bitwise-and-equal-to-zero
1034-subarrays-with-k-different-integers
1036-rotting-oranges
1038-number-of-squareful-arrays
1043-grid-illumination
1046-max-consecutive-ones-iii
1262-online-majority-element-in-subarray
1293-three-consecutive-odds
1344-maximum-equal-frequency
1392-find-the-difference-of-two-arrays
1421-find-numbers-with-even-number-of-digits
1447-jump-game-iv
1511-count-number-of-teams
1525-queries-on-a-permutation-with-key
1656-count-good-triplets
1813-maximum-erasure-value
1833-find-the-highest-altitude
1961-maximum-ice-cream-bars
1993-sum-of-all-subset-xor-totals
2023-design-movie-rental-system
2079-delete-duplicate-folders-in-system
2150-kth-smallest-product-of-two-sorted-arrays
2160-minimum-operations-to-make-a-uni-value-grid
2170-count-number-of-maximum-bitwise-or-subsets
2180-maximum-number-of-tasks-you-can-assign
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2237-longest-palindrome-by-concatenating-two-letter-words
2262-solving-questions-with-brainpower
2277-count-equal-and-divisible-pairs-in-an-array
2280-count-good-triplets-in-an-array
2316-count-hills-and-valleys-in-an-array
2333-count-number-of-rectangles-containing-each-point
2390-naming-a-company
2498-smallest-subarrays-with-maximum-bitwise-or
2505-number-of-good-paths
2513-number-of-pairs-satisfying-inequality
2526-longest-increasing-subsequence-ii
2527-count-subarrays-with-fixed-bounds
2588-maximum-number-of-points-from-grid-queries
2626-count-the-number-of-good-subarrays
2633-minimum-cost-to-split-an-array
2652-count-number-of-possible-root-nodes
2681-put-marbles-in-bags
2689-rearranging-fruits
2720-minimize-the-maximum-difference-of-pairs
2818-maximum-strictly-increasing-cells-in-a-matrix
2856-count-complete-subarrays-in-an-array
2884-length-of-the-longest-valid-substring
2888-minimum-index-of-a-valid-split
2915-count-of-interesting-subarrays
3001-apply-operations-to-maximize-score
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3152-maximum-value-of-an-ordered-triplet-ii
3154-maximum-value-of-an-ordered-triplet-i
3194-find-words-containing-character
3307-find-the-maximum-sum-of-node-values
3321-type-of-triangle
3362-find-the-median-of-the-uniqueness-array
3430-count-days-without-meetings
3435-block-placement-queries
3438-peaks-in-array
3527-alternating-groups-iii
3578-construct-2d-grid-matching-graph-layout
3621-minimum-operations-to-make-array-values-equal-to-k
3628-find-minimum-time-to-reach-last-room-ii
3639-zero-array-transformation-i
3647-zero-array-transformation-iii
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3681-maximum-area-rectangle-with-point-constraints-i
3685-count-subarrays-of-length-three-with-a-condition
3687-longest-special-path
3689-maximum-area-rectangle-with-point-constraints-ii
3700-subsequences-with-a-unique-middle-mode-i
3717-minimum-operations-to-make-elements-within-k-subarrays-equal
3747-maximum-difference-between-adjacent-elements-in-a-circular-array
3772-minimum-pair-removal-to-sort-array-ii
3798-longest-special-path-ii
3850-equal-sum-grid-partition-ii

Hash Table

0073-set-matrix-zeroes
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0128-longest-consecutive-sequence
0202-happy-number
0336-palindrome-pairs
0347-top-k-frequent-elements
0381-insert-delete-getrandom-o1-duplicates-allowed
0383-ransom-note
0480-sliding-window-median
0621-task-scheduler
0632-smallest-range-covering-elements-from-k-lists
0691-stickers-to-spell-word
0726-number-of-atoms
0736-parse-lisp-expression
0768-partition-labels
0797-rabbits-in-forest
0833-bus-routes
0869-similar-string-groups
0931-maximum-frequency-stack
0960-minimize-malware-spread
0989-largest-component-size-by-common-factor
1024-triples-with-bitwise-and-equal-to-zero
1034-subarrays-with-k-different-integers
1038-number-of-squareful-arrays
1043-grid-illumination
1218-lowest-common-ancestor-of-deepest-leaves
1270-dinner-plate-stacks
1344-maximum-equal-frequency
1392-find-the-difference-of-two-arrays
1447-jump-game-iv
1500-count-largest-group
1813-maximum-erasure-value
1986-largest-color-value-in-a-directed-graph
2023-design-movie-rental-system
2079-delete-duplicate-folders-in-system
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2237-longest-palindrome-by-concatenating-two-letter-words
2333-count-number-of-rectangles-containing-each-point
2390-naming-a-company
2505-number-of-good-paths
2512-longest-uploaded-prefix
2626-count-the-number-of-good-subarrays
2633-minimum-cost-to-split-an-array
2652-count-number-of-possible-root-nodes
2689-rearranging-fruits
2818-maximum-strictly-increasing-cells-in-a-matrix
2856-count-complete-subarrays-in-an-array
2884-length-of-the-longest-valid-substring
2888-minimum-index-of-a-valid-split
2915-count-of-interesting-subarrays
3362-find-the-median-of-the-uniqueness-array
3445-lexicographically-minimum-string-after-removing-stars
3548-find-the-count-of-good-integers
3578-construct-2d-grid-matching-graph-layout
3621-minimum-operations-to-make-array-values-equal-to-k
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3656-minimum-number-of-operations-to-make-elements-in-array-distinct
3687-longest-special-path
3700-subsequences-with-a-unique-middle-mode-i
3717-minimum-operations-to-make-elements-within-k-subarrays-equal
3772-minimum-pair-removal-to-sort-array-ii
3798-longest-special-path-ii
3850-equal-sum-grid-partition-ii

Divide and Conquer

0106-construct-binary-tree-from-inorder-and-postorder-traversal
0215-kth-largest-element-in-an-array
0218-the-skyline-problem
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0347-top-k-frequent-elements
0493-reverse-pairs
2280-count-good-triplets-in-an-array
2513-number-of-pairs-satisfying-inequality
2526-longest-increasing-subsequence-ii

Tree

0100-same-tree
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
1218-lowest-common-ancestor-of-deepest-leaves
1544-count-good-nodes-in-binary-tree
2505-number-of-good-paths
2652-count-number-of-possible-root-nodes
3307-find-the-maximum-sum-of-node-values
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii
3687-longest-special-path
3798-longest-special-path-ii

Binary Tree

0100-same-tree
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
1218-lowest-common-ancestor-of-deepest-leaves
1544-count-good-nodes-in-binary-tree

Depth-First Search

0100-same-tree
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0329-longest-increasing-path-in-a-matrix
0332-reconstruct-itinerary
0386-lexicographical-numbers
0417-pacific-atlantic-water-flow
0472-concatenated-words
0695-max-area-of-island
0869-similar-string-groups
0960-minimize-malware-spread
1218-lowest-common-ancestor-of-deepest-leaves
1544-count-good-nodes-in-binary-tree
2121-find-if-path-exists-in-graph
2652-count-number-of-possible-root-nodes
2793-count-the-number-of-complete-components
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii
3687-longest-special-path
3798-longest-special-path-ii

Breadth-First Search

0100-same-tree
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0301-remove-invalid-parentheses
0329-longest-increasing-path-in-a-matrix
0407-trapping-rain-water-ii
0417-pacific-atlantic-water-flow
0488-zuma-game
0695-max-area-of-island
0787-sliding-puzzle
0833-bus-routes
0869-similar-string-groups
0945-snakes-and-ladders
0960-minimize-malware-spread
1036-rotting-oranges
1188-brace-expansion-ii
1218-lowest-common-ancestor-of-deepest-leaves
1447-jump-game-iv
1544-count-good-nodes-in-binary-tree
2121-find-if-path-exists-in-graph
2588-maximum-number-of-points-from-grid-queries
2793-count-the-number-of-complete-components
3645-maximize-the-number-of-target-nodes-after-connecting-trees-ii

String

0067-add-binary
0087-scramble-string
0151-reverse-words-in-a-string
0212-word-search-ii
0214-shortest-palindrome
0282-expression-add-operators
0301-remove-invalid-parentheses
0336-palindrome-pairs
0383-ransom-note
0420-strong-password-checker
0466-count-the-repetitions
0472-concatenated-words
0474-ones-and-zeroes
0488-zuma-game
0691-stickers-to-spell-word
0726-number-of-atoms
0736-parse-lisp-expression
0768-partition-labels
0868-push-dominoes
0869-similar-string-groups
1188-brace-expansion-ii
1302-delete-characters-to-make-fancy-string
1356-minimum-number-of-moves-to-make-palindrome
1629-minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits
1894-merge-strings-alternately
2079-delete-duplicate-folders-in-system
2220-find-all-possible-recipes-from-given-supplies
2237-longest-palindrome-by-concatenating-two-letter-words
2390-naming-a-company
2884-length-of-the-longest-valid-substring
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3194-find-words-containing-character
3243-count-the-number-of-powerful-integers
3445-lexicographically-minimum-string-after-removing-stars
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii

Graph

0207-course-schedule
0329-longest-increasing-path-in-a-matrix
0332-reconstruct-itinerary
0960-minimize-malware-spread
1986-largest-color-value-in-a-directed-graph
2090-number-of-ways-to-arrive-at-destination
2121-find-if-path-exists-in-graph
2220-find-all-possible-recipes-from-given-supplies
2505-number-of-good-paths
2793-count-the-number-of-complete-components
3578-construct-2d-grid-matching-graph-layout
3628-find-minimum-time-to-reach-last-room-ii

Topological Sort

0207-course-schedule
0329-longest-increasing-path-in-a-matrix
1986-largest-color-value-in-a-directed-graph
2090-number-of-ways-to-arrive-at-destination
2220-find-all-possible-recipes-from-given-supplies

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands
0695-max-area-of-island
0869-similar-string-groups
0960-minimize-malware-spread
0989-largest-component-size-by-common-factor
2121-find-if-path-exists-in-graph
2505-number-of-good-paths
2512-longest-uploaded-prefix
2588-maximum-number-of-points-from-grid-queries
2793-count-the-number-of-complete-components

Dynamic Programming

0042-trapping-rain-water
0070-climbing-stairs
0087-scramble-string
0124-binary-tree-maximum-path-sum
0188-best-time-to-buy-and-sell-stock-iv
0233-number-of-digit-one
0312-burst-balloons
0329-longest-increasing-path-in-a-matrix
0354-russian-doll-envelopes
0368-largest-divisible-subset
0403-frog-jump
0410-split-array-largest-sum
0413-arithmetic-slices
0446-arithmetic-slices-ii-subsequence
0458-poor-pigs
0466-count-the-repetitions
0472-concatenated-words
0473-matchsticks-to-square
0474-ones-and-zeroes
0486-predict-the-winner
0488-zuma-game
0673-number-of-longest-increasing-subsequence
0691-stickers-to-spell-word
0787-sliding-puzzle
0868-push-dominoes
1038-number-of-squareful-arrays
1511-count-number-of-teams
1986-largest-color-value-in-a-directed-graph
2061-painting-a-grid-with-three-different-colors
2090-number-of-ways-to-arrive-at-destination
2262-solving-questions-with-brainpower
2526-longest-increasing-subsequence-ii
2633-minimum-cost-to-split-an-array
2652-count-number-of-possible-root-nodes
2720-minimize-the-maximum-difference-of-pairs
2818-maximum-strictly-increasing-cells-in-a-matrix
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3243-count-the-number-of-powerful-integers
3307-find-the-maximum-sum-of-node-values
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3717-minimum-operations-to-make-elements-within-k-subarrays-equal

Shortest Path

2090-number-of-ways-to-arrive-at-destination
3628-find-minimum-time-to-reach-last-room-ii

Prefix Sum

0363-max-sum-of-rectangle-no-larger-than-k
0410-split-array-largest-sum
1046-max-consecutive-ones-iii
1833-find-the-highest-altitude
2915-count-of-interesting-subarrays
3639-zero-array-transformation-i
3647-zero-array-transformation-iii
3687-longest-special-path
3798-longest-special-path-ii
3850-equal-sum-grid-partition-ii

Two Pointers

0015-3sum
0042-trapping-rain-water
0075-sort-colors
0151-reverse-words-in-a-string
0202-happy-number
0283-move-zeroes
0295-find-median-from-data-stream
0321-create-maximum-number
0768-partition-labels
0853-most-profit-assigning-work
0868-push-dominoes
0908-middle-of-the-linked-list
0985-bag-of-tokens
1019-squares-of-a-sorted-array
1356-minimum-number-of-moves-to-make-palindrome
1894-merge-strings-alternately
2588-maximum-number-of-points-from-grid-queries

Sorting

0015-3sum
0056-merge-intervals
0075-sort-colors
0215-kth-largest-element-in-an-array
0220-contains-duplicate-iii
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0354-russian-doll-envelopes
0368-largest-divisible-subset
0406-queue-reconstruction-by-height
0621-task-scheduler
0630-course-schedule-iii
0632-smallest-range-covering-elements-from-k-lists
0726-number-of-atoms
0853-most-profit-assigning-work
0985-bag-of-tokens
1019-squares-of-a-sorted-array
1961-maximum-ice-cream-bars
2160-minimum-operations-to-make-a-uni-value-grid
2180-maximum-number-of-tasks-you-can-assign
2215-finding-3-digit-even-numbers
2333-count-number-of-rectangles-containing-each-point
2505-number-of-good-paths
2588-maximum-number-of-points-from-grid-queries
2681-put-marbles-in-bags
2720-minimize-the-maximum-difference-of-pairs
2818-maximum-strictly-increasing-cells-in-a-matrix
2888-minimum-index-of-a-valid-split
3001-apply-operations-to-maximize-score
3307-find-the-maximum-sum-of-node-values
3321-type-of-triangle
3430-count-days-without-meetings
3647-zero-array-transformation-iii
3681-maximum-area-rectangle-with-point-constraints-i
3689-maximum-area-rectangle-with-point-constraints-ii

Sliding Window

0220-contains-duplicate-iii
0239-sliding-window-maximum
0413-arithmetic-slices
0480-sliding-window-median
0632-smallest-range-covering-elements-from-k-lists
1034-subarrays-with-k-different-integers
1046-max-consecutive-ones-iii
1813-maximum-erasure-value
2498-smallest-subarrays-with-maximum-bitwise-or
2527-count-subarrays-with-fixed-bounds
2626-count-the-number-of-good-subarrays
2856-count-complete-subarrays-in-an-array
2884-length-of-the-longest-valid-substring
3362-find-the-median-of-the-uniqueness-array
3717-minimum-operations-to-make-elements-within-k-subarrays-equal

Math

0067-add-binary
0070-climbing-stairs
0089-gray-code
0202-happy-number
0233-number-of-digit-one
0282-expression-add-operators
0335-self-crossing
0368-largest-divisible-subset
0381-insert-delete-getrandom-o1-duplicates-allowed
0458-poor-pigs
0486-predict-the-winner
0679-24-game
0797-rabbits-in-forest
0989-largest-component-size-by-common-factor
1038-number-of-squareful-arrays
1421-find-numbers-with-even-number-of-digits
1500-count-largest-group
1585-the-kth-factor-of-n
1993-sum-of-all-subset-xor-totals
2050-count-good-numbers
2160-minimum-operations-to-make-a-uni-value-grid
2998-count-symmetric-integers
3001-apply-operations-to-maximize-score
3243-count-the-number-of-powerful-integers
3321-type-of-triangle
3548-find-the-count-of-good-integers
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii
3681-maximum-area-rectangle-with-point-constraints-i
3689-maximum-area-rectangle-with-point-constraints-ii
3700-subsequences-with-a-unique-middle-mode-i
3717-minimum-operations-to-make-elements-within-k-subarrays-equal

Matrix

0073-set-matrix-zeroes
0200-number-of-islands
0212-word-search-ii
0329-longest-increasing-path-in-a-matrix
0363-max-sum-of-rectangle-no-larger-than-k
0407-trapping-rain-water-ii
0417-pacific-atlantic-water-flow
0695-max-area-of-island
0787-sliding-puzzle
0945-snakes-and-ladders
1022-unique-paths-iii
1036-rotting-oranges
2160-minimum-operations-to-make-a-uni-value-grid
2588-maximum-number-of-points-from-grid-queries
2818-maximum-strictly-increasing-cells-in-a-matrix
3578-construct-2d-grid-matching-graph-layout
3628-find-minimum-time-to-reach-last-room-ii
3850-equal-sum-grid-partition-ii

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0218-the-skyline-problem
0239-sliding-window-maximum
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0407-trapping-rain-water-ii
0420-strong-password-checker
0480-sliding-window-median
0621-task-scheduler
0630-course-schedule-iii
0632-smallest-range-covering-elements-from-k-lists
1270-dinner-plate-stacks
2023-design-movie-rental-system
2512-longest-uploaded-prefix
2588-maximum-number-of-points-from-grid-queries
2681-put-marbles-in-bags
3445-lexicographically-minimum-string-after-removing-stars
3628-find-minimum-time-to-reach-last-room-ii
3647-zero-array-transformation-iii
3717-minimum-operations-to-make-elements-within-k-subarrays-equal
3772-minimum-pair-removal-to-sort-array-ii

Stack

0042-trapping-rain-water
0155-min-stack
0321-create-maximum-number
0488-zuma-game
0682-baseball-game
0726-number-of-atoms
0736-parse-lisp-expression
0739-daily-temperatures
0931-maximum-frequency-stack
1188-brace-expansion-ii
1270-dinner-plate-stacks
3001-apply-operations-to-maximize-score
3445-lexicographically-minimum-string-after-removing-stars

Greedy

0321-create-maximum-number
0330-patching-array
0410-split-array-largest-sum
0420-strong-password-checker
0621-task-scheduler
0630-course-schedule-iii
0632-smallest-range-covering-elements-from-k-lists
0768-partition-labels
0797-rabbits-in-forest
0853-most-profit-assigning-work
0985-bag-of-tokens
1356-minimum-number-of-moves-to-make-palindrome
1629-minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits
1961-maximum-ice-cream-bars
2180-maximum-number-of-tasks-you-can-assign
2237-longest-palindrome-by-concatenating-two-letter-words
2681-put-marbles-in-bags
2689-rearranging-fruits
2720-minimize-the-maximum-difference-of-pairs
3001-apply-operations-to-maximize-score
3143-longest-unequal-adjacent-groups-subsequence-i
3307-find-the-maximum-sum-of-node-values
3445-lexicographically-minimum-string-after-removing-stars
3647-zero-array-transformation-iii

Monotonic Stack

0042-trapping-rain-water
0321-create-maximum-number
0739-daily-temperatures
3001-apply-operations-to-maximize-score

Number Theory

0989-largest-component-size-by-common-factor
1585-the-kth-factor-of-n
3001-apply-operations-to-maximize-score

Backtracking

0046-permutations
0077-combinations
0089-gray-code
0212-word-search-ii
0282-expression-add-operators
0301-remove-invalid-parentheses
0473-matchsticks-to-square
0679-24-game
0691-stickers-to-spell-word
0787-sliding-puzzle
1022-unique-paths-iii
1038-number-of-squareful-arrays
1188-brace-expansion-ii
1361-tiling-a-rectangle-with-the-fewest-squares
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets

Bit Manipulation

0067-add-binary
0089-gray-code
0473-matchsticks-to-square
0691-stickers-to-spell-word
1022-unique-paths-iii
1024-triples-with-bitwise-and-equal-to-zero
1038-number-of-squareful-arrays
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets
2390-naming-a-company
2498-smallest-subarrays-with-maximum-bitwise-or
3307-find-the-maximum-sum-of-node-values

Combinatorics

0458-poor-pigs
1993-sum-of-all-subset-xor-totals
3548-find-the-count-of-good-integers
3700-subsequences-with-a-unique-middle-mode-i

Enumeration

1656-count-good-triplets
1993-sum-of-all-subset-xor-totals
2170-count-number-of-maximum-bitwise-or-subsets
2215-finding-3-digit-even-numbers
2390-naming-a-company
2998-count-symmetric-integers
3548-find-the-count-of-good-integers
3681-maximum-area-rectangle-with-point-constraints-i
3850-equal-sum-grid-partition-ii

Memoization

0070-climbing-stairs
0329-longest-increasing-path-in-a-matrix
0488-zuma-game
0691-stickers-to-spell-word
0787-sliding-puzzle
1986-largest-color-value-in-a-directed-graph
2818-maximum-strictly-increasing-cells-in-a-matrix

Binary Search

0033-search-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0352-data-stream-as-disjoint-intervals
0354-russian-doll-envelopes
0363-max-sum-of-rectangle-no-larger-than-k
0410-split-array-largest-sum
0493-reverse-pairs
0853-most-profit-assigning-work
1046-max-consecutive-ones-iii
1262-online-majority-element-in-subarray
2150-kth-smallest-product-of-two-sorted-arrays
2180-maximum-number-of-tasks-you-can-assign
2280-count-good-triplets-in-an-array
2333-count-number-of-rectangles-containing-each-point
2380-booking-concert-tickets-in-groups
2498-smallest-subarrays-with-maximum-bitwise-or
2512-longest-uploaded-prefix
2513-number-of-pairs-satisfying-inequality
2720-minimize-the-maximum-difference-of-pairs
2818-maximum-strictly-increasing-cells-in-a-matrix
3362-find-the-median-of-the-uniqueness-array
3435-block-placement-queries

Recursion

0233-number-of-digit-one
0486-predict-the-winner
0736-parse-lisp-expression
2050-count-good-numbers

Binary Indexed Tree

0218-the-skyline-problem
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0406-queue-reconstruction-by-height
0493-reverse-pairs
0673-number-of-longest-increasing-subsequence
1262-online-majority-element-in-subarray
1356-minimum-number-of-moves-to-make-palindrome
1511-count-number-of-teams
1525-queries-on-a-permutation-with-key
1629-minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits
2280-count-good-triplets-in-an-array
2333-count-number-of-rectangles-containing-each-point
2380-booking-concert-tickets-in-groups
2512-longest-uploaded-prefix
2513-number-of-pairs-satisfying-inequality
2526-longest-increasing-subsequence-ii
3435-block-placement-queries
3438-peaks-in-array
3527-alternating-groups-iii
3681-maximum-area-rectangle-with-point-constraints-i
3689-maximum-area-rectangle-with-point-constraints-ii

Segment Tree

0218-the-skyline-problem
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0406-queue-reconstruction-by-height
0493-reverse-pairs
0673-number-of-longest-increasing-subsequence
1262-online-majority-element-in-subarray
1511-count-number-of-teams
1629-minimum-possible-integer-after-at-most-k-adjacent-swaps-on-digits
2280-count-good-triplets-in-an-array
2380-booking-concert-tickets-in-groups
2512-longest-uploaded-prefix
2513-number-of-pairs-satisfying-inequality
2526-longest-increasing-subsequence-ii
3435-block-placement-queries
3438-peaks-in-array
3681-maximum-area-rectangle-with-point-constraints-i
3689-maximum-area-rectangle-with-point-constraints-ii

Merge Sort

0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0493-reverse-pairs
2280-count-good-triplets-in-an-array
2513-number-of-pairs-satisfying-inequality

Ordered Set

0218-the-skyline-problem
0220-contains-duplicate-iii
0315-count-of-smaller-numbers-after-self
0327-count-of-range-sum
0352-data-stream-as-disjoint-intervals
0363-max-sum-of-rectangle-no-larger-than-k
0493-reverse-pairs
0931-maximum-frequency-stack
2023-design-movie-rental-system
2280-count-good-triplets-in-an-array
2512-longest-uploaded-prefix
2513-number-of-pairs-satisfying-inequality
2818-maximum-strictly-increasing-cells-in-a-matrix
3772-minimum-pair-removal-to-sort-array-ii

Counting Sort

0347-top-k-frequent-elements
0383-ransom-note
0621-task-scheduler
1034-subarrays-with-k-different-integers
1961-maximum-ice-cream-bars
1986-largest-color-value-in-a-directed-graph
2237-longest-palindrome-by-concatenating-two-letter-words
2633-minimum-cost-to-split-an-array
3629-total-characters-in-string-after-transformations-i
3630-total-characters-in-string-after-transformations-ii

Trie

0212-word-search-ii
0336-palindrome-pairs
0386-lexicographical-numbers
0472-concatenated-words
2079-delete-duplicate-folders-in-system

Rolling Hash

0214-shortest-palindrome

String Matching

0214-shortest-palindrome

Hash Function

0214-shortest-palindrome
2079-delete-duplicate-folders-in-system

Queue

0239-sliding-window-maximum
2180-maximum-number-of-tasks-you-can-assign
2526-longest-increasing-subsequence-ii
2527-count-subarrays-with-fixed-bounds

Monotonic Queue

0239-sliding-window-maximum
2180-maximum-number-of-tasks-you-can-assign
2526-longest-increasing-subsequence-ii
2527-count-subarrays-with-fixed-bounds

Bucket Sort

0220-contains-duplicate-iii
0347-top-k-frequent-elements

Linked List

0908-middle-of-the-linked-list
3772-minimum-pair-removal-to-sort-array-ii

Simulation

0067-add-binary
0682-baseball-game
1525-queries-on-a-permutation-with-key
3772-minimum-pair-removal-to-sort-array-ii

Doubly-Linked List

3772-minimum-pair-removal-to-sort-array-ii

Design

0155-min-stack
0295-find-median-from-data-stream
0352-data-stream-as-disjoint-intervals
0381-insert-delete-getrandom-o1-duplicates-allowed
0931-maximum-frequency-stack
1262-online-majority-element-in-subarray
1270-dinner-plate-stacks
2023-design-movie-rental-system
2380-booking-concert-tickets-in-groups
2512-longest-uploaded-prefix

Bitmask

0473-matchsticks-to-square
0691-stickers-to-spell-word
1038-number-of-squareful-arrays

Database

0176-second-highest-salary
0177-nth-highest-salary
0178-rank-scores
0180-consecutive-numbers
0181-employees-earning-more-than-their-managers
0182-duplicate-emails
0183-customers-who-never-order
0184-department-highest-salary
0185-department-top-three-salaries
0196-delete-duplicate-emails
0197-rising-temperature
0602-friend-requests-ii-who-has-the-most-friends
0607-sales-person
0620-not-boring-movies
0626-exchange-seats
1135-customers-who-bought-all-products
1136-actors-and-directors-who-cooperated-at-least-three-times
1153-product-sales-analysis-i
1155-product-sales-analysis-iii
1161-project-employees-i
1174-sales-analysis-iii
1179-game-play-analysis-i
1245-user-activity-for-the-past-30-days-i
1258-article-views-i
1268-market-analysis-i
1278-product-price-at-a-given-date
1292-immediate-food-delivery-ii
1317-monthly-transactions-i

Data Stream

0295-find-median-from-data-stream

Eulerian Circuit

0332-reconstruct-itinerary

Geometry

0335-self-crossing
3681-maximum-area-rectangle-with-point-constraints-i
3689-maximum-area-rectangle-with-point-constraints-ii

Randomized

0381-insert-delete-getrandom-o1-duplicates-allowed

Line Sweep

0218-the-skyline-problem
0391-perfect-rectangle

Game Theory

0486-predict-the-winner

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages