Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

tushar-upadhya/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
0133-clone-graph
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
0297-serialize-and-deserialize-binary-tree
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0684-redundant-connection
0733-flood-fill
1029-vertical-order-traversal-of-a-binary-tree
1093-recover-a-tree-from-preorder-traversal
1218-lowest-common-ancestor-of-deepest-leaves
1387-find-elements-in-a-contaminated-binary-tree
1396-count-servers-that-communicate
1475-maximum-sum-bst-in-binary-tree
1558-course-schedule-iv
2201-valid-arrangement-of-pairs
2246-maximum-employees-to-be-invited-to-a-meeting
2493-reverse-odd-levels-of-binary-tree
2764-maximum-number-of-fish-in-a-grid
2793-count-the-number-of-complete-components
3058-maximum-number-of-k-divisible-components

Graph

0133-clone-graph
0684-redundant-connection
1558-course-schedule-iv
2201-valid-arrangement-of-pairs
2220-find-all-possible-recipes-from-given-supplies
2246-maximum-employees-to-be-invited-to-a-meeting
2583-divide-nodes-into-the-maximum-number-of-groups
2793-count-the-number-of-complete-components
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii

Eulerian Circuit

2201-valid-arrangement-of-pairs

Array

0011-container-with-most-water
0016-3sum-closest
0027-remove-element
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0036-valid-sudoku
0041-first-missing-positive
0045-jump-game-ii
0049-group-anagrams
0054-spiral-matrix
0063-unique-paths-ii
0073-set-matrix-zeroes
0075-sort-colors
0084-largest-rectangle-in-histogram
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0416-partition-equal-subset-sum
0494-target-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
0733-flood-fill
0780-max-chunks-to-make-sorted
0905-length-of-longest-fibonacci-subsequence
0952-word-subsets
1036-rotting-oranges
1049-minimum-domino-rotations-for-equal-row
1063-best-sightseeing-pair
1227-number-of-equivalent-domino-pairs
1293-three-consecutive-odds
1364-tuple-with-same-product
1396-count-servers-that-communicate
1421-find-numbers-with-even-number-of-digits
1468-check-if-n-and-its-double-exist
1477-product-of-the-last-k-numbers
1524-string-matching-in-an-array
1570-final-prices-with-a-special-discount-in-a-shop
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1819-construct-the-lexicographically-largest-valid-sequence
1849-maximum-absolute-sum-of-any-subarray
1876-map-of-highest-peak
1886-minimum-limit-of-balls-in-a-bag
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
1917-maximum-average-pass-ratio
1927-maximum-ascending-subarray-sum
1993-sum-of-all-subset-xor-totals
2048-build-array-from-permutation
2107-find-unique-binary-string
2145-grid-game
2164-two-best-non-overlapping-events
2180-maximum-number-of-tasks-you-can-assign
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2249-count-the-hidden-sequences
2262-solving-questions-with-brainpower
2265-partition-array-according-to-given-pivot
2280-count-good-triplets-in-an-array
2292-counting-words-with-a-given-prefix
2308-divide-array-into-equal-pairs
2394-count-subarrays-with-score-less-than-k
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2478-longest-nice-subarray
2527-count-subarrays-with-fixed-bounds
2533-bitwise-xor-of-all-pairings
2551-apply-operations-to-an-array
2626-count-the-number-of-good-subarrays
2685-first-completely-painted-row-or-column
2691-count-vowel-strings-in-ranges
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2764-maximum-number-of-fish-in-a-grid
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor
2868-continuous-subarrays
2888-minimum-index-of-a-valid-split
2891-maximum-beauty-of-an-array-after-applying-operation
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
3171-minimum-equal-sum-of-two-arrays-after-replacing-zeros
3181-find-building-where-alice-and-bob-can-meet
3213-count-subarrays-where-max-element-appears-at-least-k-times
3219-make-lexicographically-smallest-array-by-swapping-elements
3321-type-of-triangle
3332-minimum-operations-to-exceed-threshold-value-ii
3372-longest-strictly-increasing-or-strictly-decreasing-subarray
3429-special-array-i
3434-find-the-number-of-distinct-colors-among-the-balls
3555-final-array-state-after-k-multiplication-operations-i
3621-minimum-operations-to-make-array-values-equal-to-k
3627-find-minimum-time-to-reach-last-room-i
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
3657-check-if-grid-can-be-cut-into-sections
3685-count-subarrays-of-length-three-with-a-condition

Stack

0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0114-flatten-binary-tree-to-linked-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0780-max-chunks-to-make-sorted
0937-online-stock-span
1570-final-prices-with-a-special-discount-in-a-shop
2021-remove-all-occurrences-of-a-substring
2221-check-if-a-parentheses-string-can-be-valid
2456-construct-smallest-number-from-di-string
3181-find-building-where-alice-and-bob-can-meet
3447-clear-digits

Monotonic Stack

0084-largest-rectangle-in-histogram
0780-max-chunks-to-make-sorted
0937-online-stock-span
1570-final-prices-with-a-special-discount-in-a-shop
3181-find-building-where-alice-and-bob-can-meet

Queue

0239-sliding-window-maximum
2180-maximum-number-of-tasks-you-can-assign
2527-count-subarrays-with-fixed-bounds
2868-continuous-subarrays

Sliding Window

0239-sliding-window-maximum
1460-number-of-substrings-containing-all-three-characters
2394-count-subarrays-with-score-less-than-k
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2478-longest-nice-subarray
2527-count-subarrays-with-fixed-bounds
2626-count-the-number-of-good-subarrays
2868-continuous-subarrays
2891-maximum-beauty-of-an-array-after-applying-operation
3213-count-subarrays-where-max-element-appears-at-least-k-times
3267-find-longest-special-substring-that-occurs-thrice-i
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream
1917-maximum-average-pass-ratio
2164-two-best-non-overlapping-events
2300-construct-string-with-repeat-limit
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
2868-continuous-subarrays
3181-find-building-where-alice-and-bob-can-meet
3332-minimum-operations-to-exceed-threshold-value-ii
3555-final-array-state-after-k-multiplication-operations-i
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii
3647-zero-array-transformation-iii

Monotonic Queue

0239-sliding-window-maximum
2180-maximum-number-of-tasks-you-can-assign
2527-count-subarrays-with-fixed-bounds
2868-continuous-subarrays

Hash Table

0012-integer-to-roman
0013-roman-to-integer
0036-valid-sudoku
0041-first-missing-positive
0049-group-anagrams
0073-set-matrix-zeroes
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0133-clone-graph
0242-valid-anagram
0653-two-sum-iv-input-is-a-bst
0905-length-of-longest-fibonacci-subsequence
0952-word-subsets
1029-vertical-order-traversal-of-a-binary-tree
1160-letter-tile-possibilities
1218-lowest-common-ancestor-of-deepest-leaves
1227-number-of-equivalent-domino-pairs
1364-tuple-with-same-product
1387-find-elements-in-a-contaminated-binary-tree
1460-number-of-substrings-containing-all-three-characters
1468-check-if-n-and-its-double-exist
2107-find-unique-binary-string
2215-finding-3-digit-even-numbers
2220-find-all-possible-recipes-from-given-supplies
2300-construct-string-with-repeat-limit
2308-divide-array-into-equal-pairs
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2626-count-the-number-of-good-subarrays
2685-first-completely-painted-row-or-column
2695-find-score-of-an-array-after-marking-all-elements
2766-find-the-prefix-common-array-of-two-arrays
2888-minimum-index-of-a-valid-split
3267-find-longest-special-substring-that-occurs-thrice-i
3434-find-the-number-of-distinct-colors-among-the-balls
3548-find-the-count-of-good-integers
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3621-minimum-operations-to-make-array-values-equal-to-k
3629-total-characters-in-string-after-transformations-i
3656-minimum-number-of-operations-to-make-elements-in-array-distinct

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0016-3sum-closest
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0151-reverse-words-in-a-string
0165-compare-version-numbers
0295-find-median-from-data-stream
0653-two-sum-iv-input-is-a-bst
0868-push-dominoes
1468-check-if-n-and-its-double-exist
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2265-partition-array-according-to-given-pivot
2414-move-pieces-to-obtain-a-string
2551-apply-operations-to-an-array
3018-make-string-a-subsequence-using-cyclic-increments

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
1468-check-if-n-and-its-double-exist
1886-minimum-limit-of-balls-in-a-bag
2164-two-best-non-overlapping-events
2180-maximum-number-of-tasks-you-can-assign
2280-count-good-triplets-in-an-array
2394-count-subarrays-with-score-less-than-k
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

Sorting

0016-3sum-closest
0049-group-anagrams
0075-sort-colors
0215-kth-largest-element-in-an-array
0242-valid-anagram
0295-find-median-from-data-stream
0780-max-chunks-to-make-sorted
1029-vertical-order-traversal-of-a-binary-tree
1468-check-if-n-and-its-double-exist
2164-two-best-non-overlapping-events
2180-maximum-number-of-tasks-you-can-assign
2215-finding-3-digit-even-numbers
2473-max-sum-of-a-pair-with-equal-sum-of-digits
2695-find-score-of-an-array-after-marking-all-elements
2888-minimum-index-of-a-valid-split
2891-maximum-beauty-of-an-array-after-applying-operation
3219-make-lexicographically-smallest-array-by-swapping-elements
3321-type-of-triangle
3647-zero-array-transformation-iii
3657-check-if-grid-can-be-cut-into-sections

String

0005-longest-palindromic-substring
0006-zigzag-conversion
0008-string-to-integer-atoi
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0022-generate-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0038-count-and-say
0043-multiply-strings
0049-group-anagrams
0058-length-of-last-word
0151-reverse-words-in-a-string
0165-compare-version-numbers
0242-valid-anagram
0297-serialize-and-deserialize-binary-tree
0686-repeated-string-match
0868-push-dominoes
0952-word-subsets
1093-recover-a-tree-from-preorder-traversal
1160-letter-tile-possibilities
1170-shortest-common-supersequence
1460-number-of-substrings-containing-all-three-characters
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1524-string-matching-in-an-array
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2021-remove-all-occurrences-of-a-substring
2107-find-unique-binary-string
2220-find-all-possible-recipes-from-given-supplies
2221-check-if-a-parentheses-string-can-be-valid
2292-counting-words-with-a-given-prefix
2300-construct-string-with-repeat-limit
2414-move-pieces-to-obtain-a-string
2456-construct-smallest-number-from-di-string
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2691-count-vowel-strings-in-ranges
3018-make-string-a-subsequence-using-cyclic-increments
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3267-find-longest-special-substring-that-occurs-thrice-i
3447-clear-digits
3569-count-of-substrings-containing-every-vowel-and-k-consonants-ii
3629-total-characters-in-string-after-transformations-i
3637-count-number-of-balanced-permutations

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0686-repeated-string-match
1524-string-matching-in-an-array
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2292-counting-words-with-a-given-prefix

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0116-populating-next-right-pointers-in-each-node
0133-clone-graph
0297-serialize-and-deserialize-binary-tree
0515-find-largest-value-in-each-tree-row
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0684-redundant-connection
0733-flood-fill
1029-vertical-order-traversal-of-a-binary-tree
1036-rotting-oranges
1218-lowest-common-ancestor-of-deepest-leaves
1387-find-elements-in-a-contaminated-binary-tree
1396-count-servers-that-communicate
1558-course-schedule-iv
1876-map-of-highest-peak
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
2583-divide-nodes-into-the-maximum-number-of-groups
2764-maximum-number-of-fish-in-a-grid
2793-count-the-number-of-complete-components

Matrix

0036-valid-sudoku
0054-spiral-matrix
0063-unique-paths-ii
0073-set-matrix-zeroes
0733-flood-fill
1036-rotting-oranges
1396-count-servers-that-communicate
1876-map-of-highest-peak
2145-grid-game
2685-first-completely-painted-row-or-column
2764-maximum-number-of-fish-in-a-grid
3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii

Design

0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0789-kth-largest-element-in-a-stream
0937-online-stock-span
1387-find-elements-in-a-contaminated-binary-tree
1477-product-of-the-last-k-numbers

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream
0937-online-stock-span
1477-product-of-the-last-k-numbers

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0045-jump-game-ii
0063-unique-paths-ii
0124-binary-tree-maximum-path-sum
0416-partition-equal-subset-sum
0494-target-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
0806-domino-and-tromino-tiling
0868-push-dominoes
0905-length-of-longest-fibonacci-subsequence
1063-best-sightseeing-pair
1170-shortest-common-supersequence
1475-maximum-sum-bst-in-binary-tree
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1849-maximum-absolute-sum-of-any-subarray
2061-painting-a-grid-with-three-different-colors
2164-two-best-non-overlapping-events
2262-solving-questions-with-brainpower
2562-count-ways-to-build-good-strings
3142-longest-unequal-adjacent-groups-subsequence-ii
3143-longest-unequal-adjacent-groups-subsequence-i
3629-total-characters-in-string-after-transformations-i
3637-count-number-of-balanced-permutations

Math

0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0043-multiply-strings
1421-find-numbers-with-even-number-of-digits
1477-product-of-the-last-k-numbers
1993-sum-of-all-subset-xor-totals
2610-closest-prime-numbers-in-range
2649-count-total-number-of-colored-cells
2998-count-symmetric-integers
3321-type-of-triangle
3548-find-the-count-of-good-integers
3555-final-array-state-after-k-multiplication-operations-i
3629-total-characters-in-string-after-transformations-i
3637-count-number-of-balanced-permutations

Counting

1160-letter-tile-possibilities
1227-number-of-equivalent-domino-pairs
1364-tuple-with-same-product
1396-count-servers-that-communicate
2300-construct-string-with-repeat-limit
2308-divide-array-into-equal-pairs
3267-find-longest-special-substring-that-occurs-thrice-i
3629-total-characters-in-string-after-transformations-i

Trie

0014-longest-common-prefix

Simulation

0043-multiply-strings
0054-spiral-matrix
2021-remove-all-occurrences-of-a-substring
2048-build-array-from-permutation
2265-partition-array-according-to-given-pivot
2551-apply-operations-to-an-array
2692-take-gifts-from-the-richest-pile
2695-find-score-of-an-array-after-marking-all-elements
3332-minimum-operations-to-exceed-threshold-value-ii
3434-find-the-number-of-distinct-colors-among-the-balls
3447-clear-digits
3555-final-array-state-after-k-multiplication-operations-i

Ordered Set

2280-count-good-triplets-in-an-array
2868-continuous-subarrays

Greedy

0011-container-with-most-water
0045-jump-game-ii
0780-max-chunks-to-make-sorted
1049-minimum-domino-rotations-for-equal-row
1917-maximum-average-pass-ratio
2180-maximum-number-of-tasks-you-can-assign
2221-check-if-a-parentheses-string-can-be-valid
2300-construct-string-with-repeat-limit
2456-construct-smallest-number-from-di-string
2509-minimize-xor
3143-longest-unequal-adjacent-groups-subsequence-i
3171-minimum-equal-sum-of-two-arrays-after-replacing-zeros
3647-zero-array-transformation-iii

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
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
0297-serialize-and-deserialize-binary-tree
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0783-search-in-a-binary-search-tree
0789-kth-largest-element-in-a-stream
1029-vertical-order-traversal-of-a-binary-tree
1093-recover-a-tree-from-preorder-traversal
1218-lowest-common-ancestor-of-deepest-leaves
1387-find-elements-in-a-contaminated-binary-tree
1475-maximum-sum-bst-in-binary-tree
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
3058-maximum-number-of-k-divisible-components

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0103-binary-tree-zigzag-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node
0124-binary-tree-maximum-path-sum
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
0297-serialize-and-deserialize-binary-tree
0515-find-largest-value-in-each-tree-row
0543-diameter-of-binary-tree
0653-two-sum-iv-input-is-a-bst
0662-maximum-width-of-binary-tree
0783-search-in-a-binary-search-tree
0789-kth-largest-element-in-a-stream
1029-vertical-order-traversal-of-a-binary-tree
1093-recover-a-tree-from-preorder-traversal
1218-lowest-common-ancestor-of-deepest-leaves
1387-find-elements-in-a-contaminated-binary-tree
1475-maximum-sum-bst-in-binary-tree
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level

Binary Indexed Tree

2280-count-good-triplets-in-an-array
3181-find-building-where-alice-and-bob-can-meet

Segment Tree

2280-count-good-triplets-in-an-array
3181-find-building-where-alice-and-bob-can-meet

Backtracking

0022-generate-parentheses
0494-target-sum
1160-letter-tile-possibilities
1516-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n
1819-construct-the-lexicographically-largest-valid-sequence
1993-sum-of-all-subset-xor-totals
2107-find-unique-binary-string
2456-construct-smallest-number-from-di-string

Prefix Sum

1477-product-of-the-last-k-numbers
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2145-grid-game
2249-count-the-hidden-sequences
2394-count-subarrays-with-score-less-than-k
2691-count-vowel-strings-in-ranges
3639-zero-array-transformation-i
3647-zero-array-transformation-iii

Bit Manipulation

1993-sum-of-all-subset-xor-totals
2308-divide-array-into-equal-pairs
2478-longest-nice-subarray
2509-minimize-xor
2533-bitwise-xor-of-all-pairings
2766-find-the-prefix-common-array-of-two-arrays
2792-neighboring-bitwise-xor

Brainteaser

2533-bitwise-xor-of-all-pairings

Union Find

0684-redundant-connection
1396-count-servers-that-communicate
2583-divide-nodes-into-the-maximum-number-of-groups
2764-maximum-number-of-fish-in-a-grid
2793-count-the-number-of-complete-components
3219-make-lexicographically-smallest-array-by-swapping-elements

Topological Sort

1558-course-schedule-iv
2220-find-all-possible-recipes-from-given-supplies
2246-maximum-employees-to-be-invited-to-a-meeting

Divide and Conquer

0023-merge-k-sorted-lists
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0106-construct-binary-tree-from-inorder-and-postorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0215-kth-largest-element-in-an-array
2280-count-good-triplets-in-an-array

Linked List

0023-merge-k-sorted-lists
0024-swap-nodes-in-pairs
0114-flatten-binary-tree-to-linked-list
0116-populating-next-right-pointers-in-each-node

Binary Search Tree

0098-validate-binary-search-tree
0108-convert-sorted-array-to-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
0783-search-in-a-binary-search-tree
0789-kth-largest-element-in-a-stream
1475-maximum-sum-bst-in-binary-tree

Number Theory

2610-closest-prime-numbers-in-range

Merge Sort

0023-merge-k-sorted-lists
2280-count-good-triplets-in-an-array

Recursion

0024-swap-nodes-in-pairs

Combinatorics

1993-sum-of-all-subset-xor-totals
3548-find-the-count-of-good-integers
3637-count-number-of-balanced-permutations

Enumeration

1993-sum-of-all-subset-xor-totals
2215-finding-3-digit-even-numbers
2998-count-symmetric-integers
3548-find-the-count-of-good-integers

Quickselect

0215-kth-largest-element-in-an-array

Shortest Path

3627-find-minimum-time-to-reach-last-room-i
3628-find-minimum-time-to-reach-last-room-ii