Skip to content

stanleypangg/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0014-longest-common-prefix
0015-3sum
0016-3sum-closest
0018-4sum
0026-remove-duplicates-from-sorted-array
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0036-valid-sudoku
0039-combination-sum
0040-combination-sum-ii
0042-trapping-rain-water
0045-jump-game-ii
0046-permutations
0048-rotate-image
0049-group-anagrams
0051-n-queens
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0057-insert-interval
0066-plus-one
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0078-subsets
0079-word-search
0084-largest-rectangle-in-histogram
0090-subsets-ii
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0130-surrounded-regions
0134-gas-station
0139-word-break
0150-evaluate-reverse-polish-notation
0152-maximum-product-subarray
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0198-house-robber
0200-number-of-islands
0209-minimum-size-subarray-sum
0212-word-search-ii
0213-house-robber-ii
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0238-product-of-array-except-self
0239-sliding-window-maximum
0252-meeting-rooms
0268-missing-number
0271-encode-and-decode-strings
0286-walls-and-gates
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0322-coin-change
0347-top-k-frequent-elements
0416-partition-equal-subset-sum
0417-pacific-atlantic-water-flow
0419-battleships-in-a-board
0463-island-perimeter
0495-teemo-attacking
0496-next-greater-element-i
0560-subarray-sum-equals-k
0621-task-scheduler
0682-baseball-game
0695-max-area-of-island
0697-degree-of-an-array
0733-flood-fill
0739-daily-temperatures
0753-open-the-lock
0792-binary-search
0853-car-fleet
0861-flipping-an-image
0906-walking-robot-simulation
0907-koko-eating-bananas
0912-random-pick-with-weight
0948-sort-an-array
0948-bag-of-tokens
0967-minimum-falling-path-sum
0990-verifying-an-alien-dictionary
1014-k-closest-points-to-origin
1036-rotting-oranges
1039-find-the-town-judge
1127-last-stone-weight
1231-replace-elements-with-greatest-element-on-right-side
1413-minimum-value-to-get-positive-step-by-step-sum
1429-first-unique-number
1570-dot-product-of-two-sparse-vectors
1582-design-browser-history
1603-running-sum-of-1d-array
1656-count-good-triplets
1791-richest-customer-wealth
1962-single-threaded-cpu
2013-detect-squares
2043-simple-bank-system
2058-concatenation-of-array
2195-time-needed-to-buy-tickets
2341-count-prefixes-of-a-given-string
2436-make-array-zero-by-subtracting-equal-amounts
2445-reachable-nodes-with-restrictions
2727-number-of-senior-citizens
3170-find-indices-with-index-and-value-difference-ii
3194-find-words-containing-character
3290-maximum-multiplication-score
3437-maximum-total-damage-with-spell-casting
3708-longest-fibonacci-subarray
3751-maximum-frequency-after-subarray-operation
3790-fruits-into-baskets-ii

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0036-valid-sudoku
0049-group-anagrams
0073-set-matrix-zeroes
0076-minimum-window-substring
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0127-word-ladder
0128-longest-consecutive-sequence
0133-clone-graph
0138-copy-list-with-random-pointer
0139-word-break
0141-linked-list-cycle
0146-lru-cache
0160-intersection-of-two-linked-lists
0208-implement-trie-prefix-tree
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0290-word-pattern
0314-binary-tree-vertical-order-traversal
0347-top-k-frequent-elements
0355-design-twitter
0383-ransom-note
0387-first-unique-character-in-a-string
0424-longest-repeating-character-replacement
0460-lfu-cache
0496-next-greater-element-i
0560-subarray-sum-equals-k
0567-permutation-in-string
0621-task-scheduler
0697-degree-of-an-array
0753-open-the-lock
0763-partition-labels
0778-reorganize-string
0906-walking-robot-simulation
0990-verifying-an-alien-dictionary
1023-time-based-key-value-store
1039-find-the-town-judge
1429-first-unique-number
1512-design-underground-system
1570-dot-product-of-two-sparse-vectors
1960-check-if-the-sentence-is-pangram
2013-detect-squares
2043-simple-bank-system
2436-make-array-zero-by-subtracting-equal-amounts
2445-reachable-nodes-with-restrictions
3437-maximum-total-damage-with-spell-casting
3751-maximum-frequency-after-subarray-operation
3753-maximum-difference-between-even-and-odd-frequency-i

Sorting

0015-3sum
0016-3sum-closest
0018-4sum
0049-group-anagrams
0056-merge-intervals
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0242-valid-anagram
0252-meeting-rooms
0268-missing-number
0295-find-median-from-data-stream
0314-binary-tree-vertical-order-traversal
0347-top-k-frequent-elements
0621-task-scheduler
0778-reorganize-string
0853-car-fleet
0948-sort-an-array
0948-bag-of-tokens
1014-k-closest-points-to-origin
1087-brace-expansion
1962-single-threaded-cpu
2436-make-array-zero-by-subtracting-equal-amounts
2650-split-with-minimum-sum
3437-maximum-total-damage-with-spell-casting

Simulation

0054-spiral-matrix
0067-add-binary
0412-fizz-buzz
0495-teemo-attacking
0682-baseball-game
0861-flipping-an-image
0906-walking-robot-simulation
1642-water-bottles
1708-design-parking-system
2043-simple-bank-system
2058-concatenation-of-array
2178-walking-robot-simulation-ii
2195-time-needed-to-buy-tickets
2436-make-array-zero-by-subtracting-equal-amounts
3790-fruits-into-baskets-ii

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0014-longest-common-prefix
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0038-count-and-say
0049-group-anagrams
0058-length-of-last-word
0067-add-binary
0071-simplify-path
0076-minimum-window-substring
0079-word-search
0091-decode-ways
0125-valid-palindrome
0127-word-ladder
0131-palindrome-partitioning
0139-word-break
0208-implement-trie-prefix-tree
0211-design-add-and-search-words-data-structure
0212-word-search-ii
0242-valid-anagram
0271-encode-and-decode-strings
0290-word-pattern
0297-serialize-and-deserialize-binary-tree
0344-reverse-string
0383-ransom-note
0387-first-unique-character-in-a-string
0392-is-subsequence
0394-decode-string
0408-valid-word-abbreviation
0412-fizz-buzz
0424-longest-repeating-character-replacement
0520-detect-capital
0567-permutation-in-string
0647-palindromic-substrings
0680-valid-palindrome-ii
0742-to-lower-case
0753-open-the-lock
0763-partition-labels
0778-reorganize-string
0921-minimum-add-to-make-parentheses-valid
0990-verifying-an-alien-dictionary
1023-time-based-key-value-store
1087-brace-expansion
1249-minimum-remove-to-make-valid-parentheses
1302-delete-characters-to-make-fancy-string
1512-design-underground-system
1714-rearrange-spaces-between-words
1894-merge-strings-alternately
1960-check-if-the-sentence-is-pangram
2154-minimum-moves-to-convert-string
2341-count-prefixes-of-a-given-string
2346-largest-3-same-digit-number-in-string
2727-number-of-senior-citizens
3194-find-words-containing-character
3379-score-of-a-string
3396-valid-word
3617-find-the-original-typed-string-i
3753-maximum-difference-between-even-and-odd-frequency-i

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0191-number-of-1-bits
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
0948-sort-an-array
1014-k-closest-points-to-origin

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
0347-top-k-frequent-elements
0355-design-twitter
0621-task-scheduler
0744-network-delay-time
0778-reorganize-string
0789-kth-largest-element-in-a-stream
0948-sort-an-array
1014-k-closest-points-to-origin
1127-last-stone-weight
1962-single-threaded-cpu
2436-make-array-zero-by-subtracting-equal-amounts

Bucket Sort

0347-top-k-frequent-elements
0948-sort-an-array

Counting

0347-top-k-frequent-elements
0383-ransom-note
0387-first-unique-character-in-a-string
0621-task-scheduler
0778-reorganize-string
1708-design-parking-system
2013-detect-squares
3437-maximum-total-damage-with-spell-casting
3753-maximum-difference-between-even-and-odd-frequency-i

Quickselect

0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0560-subarray-sum-equals-k
0912-random-pick-with-weight
1413-minimum-value-to-get-positive-step-by-step-sum
1603-running-sum-of-1d-array
3751-maximum-frequency-after-subarray-operation

Union Find

0128-longest-consecutive-sequence
0130-surrounded-regions
0200-number-of-islands
0261-graph-valid-tree
0684-redundant-connection
0695-max-area-of-island
2445-reachable-nodes-with-restrictions

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0042-trapping-rain-water
0125-valid-palindrome
0141-linked-list-cycle
0143-reorder-list
0160-intersection-of-two-linked-lists
0167-two-sum-ii-input-array-is-sorted
0234-palindrome-linked-list
0287-find-the-duplicate-number
0295-find-median-from-data-stream
0344-reverse-string
0392-is-subsequence
0408-valid-word-abbreviation
0567-permutation-in-string
0647-palindromic-substrings
0680-valid-palindrome-ii
0763-partition-labels
0861-flipping-an-image
0908-middle-of-the-linked-list
0948-bag-of-tokens
1570-dot-product-of-two-sparse-vectors
1894-merge-strings-alternately
3170-find-indices-with-index-and-value-difference-ii
3437-maximum-total-damage-with-spell-casting

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0621-task-scheduler
0680-valid-palindrome-ii
0763-partition-labels
0778-reorganize-string
0921-minimum-add-to-make-parentheses-valid
0948-bag-of-tokens
2154-minimum-moves-to-convert-string
2436-make-array-zero-by-subtracting-equal-amounts
2650-split-with-minimum-sum
3751-maximum-frequency-after-subarray-operation

Stack

0020-valid-parentheses
0042-trapping-rain-water
0071-simplify-path
0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0143-reorder-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0150-evaluate-reverse-polish-notation
0155-min-stack
0173-binary-search-tree-iterator
0234-palindrome-linked-list
0394-decode-string
0496-next-greater-element-i
0682-baseball-game
0739-daily-temperatures
0853-car-fleet
0921-minimum-add-to-make-parentheses-valid
1087-brace-expansion
1249-minimum-remove-to-make-valid-parentheses
1582-design-browser-history

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0025-reverse-nodes-in-k-group
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0146-lru-cache
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0355-design-twitter
0460-lfu-cache
0838-design-linked-list
0908-middle-of-the-linked-list
1411-convert-binary-number-in-a-linked-list-to-integer
1582-design-browser-history

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0143-reorder-list
0206-reverse-linked-list
0234-palindrome-linked-list
0394-decode-string
1013-fibonacci-number

Matrix

0036-valid-sudoku
0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0079-word-search
0130-surrounded-regions
0200-number-of-islands
0212-word-search-ii
0286-walls-and-gates
0417-pacific-atlantic-water-flow
0419-battleships-in-a-board
0463-island-perimeter
0695-max-area-of-island
0733-flood-fill
0861-flipping-an-image
0967-minimum-falling-path-sum
1036-rotting-oranges
1791-richest-customer-wealth

Design

0146-lru-cache
0155-min-stack
0173-binary-search-tree-iterator
0208-implement-trie-prefix-tree
0211-design-add-and-search-words-data-structure
0271-encode-and-decode-strings
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree
0355-design-twitter
0460-lfu-cache
0789-kth-largest-element-in-a-stream
0838-design-linked-list
1023-time-based-key-value-store
1429-first-unique-number
1512-design-underground-system
1570-dot-product-of-two-sparse-vectors
1582-design-browser-history
1708-design-parking-system
2013-detect-squares
2043-simple-bank-system
2178-walking-robot-simulation-ii

Binary Search

0004-median-of-two-sorted-arrays
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0222-count-complete-tree-nodes
0268-missing-number
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0374-guess-number-higher-or-lower
0792-binary-search
0907-koko-eating-bananas
0912-random-pick-with-weight
1023-time-based-key-value-store
3437-maximum-total-damage-with-spell-casting
3790-fruits-into-baskets-ii

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0124-binary-tree-maximum-path-sum
0129-sum-root-to-leaf-numbers
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0173-binary-search-tree-iterator
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0226-invert-binary-tree
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
0314-binary-tree-vertical-order-traversal
0337-house-robber-iii
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0789-kth-largest-element-in-a-stream
0938-range-sum-of-bst
1544-count-good-nodes-in-binary-tree
2445-reachable-nodes-with-restrictions

Depth-First Search

0079-word-search
0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0124-binary-tree-maximum-path-sum
0129-sum-root-to-leaf-numbers
0130-surrounded-regions
0133-clone-graph
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0211-design-add-and-search-words-data-structure
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0261-graph-valid-tree
0297-serialize-and-deserialize-binary-tree
0314-binary-tree-vertical-order-traversal
0337-house-robber-iii
0417-pacific-atlantic-water-flow
0419-battleships-in-a-board
0463-island-perimeter
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0684-redundant-connection
0695-max-area-of-island
0733-flood-fill
0744-network-delay-time
0938-range-sum-of-bst
1544-count-good-nodes-in-binary-tree
2445-reachable-nodes-with-restrictions

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0127-word-ladder
0130-surrounded-regions
0133-clone-graph
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0261-graph-valid-tree
0286-walls-and-gates
0297-serialize-and-deserialize-binary-tree
0314-binary-tree-vertical-order-traversal
0322-coin-change
0417-pacific-atlantic-water-flow
0463-island-perimeter
0684-redundant-connection
0695-max-area-of-island
0733-flood-fill
0744-network-delay-time
0753-open-the-lock
1036-rotting-oranges
1087-brace-expansion
1544-count-good-nodes-in-binary-tree
2445-reachable-nodes-with-restrictions

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0111-minimum-depth-of-binary-tree
0112-path-sum
0124-binary-tree-maximum-path-sum
0129-sum-root-to-leaf-numbers
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0173-binary-search-tree-iterator
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0226-invert-binary-tree
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
0314-binary-tree-vertical-order-traversal
0337-house-robber-iii
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0789-kth-largest-element-in-a-stream
0938-range-sum-of-bst
1544-count-good-nodes-in-binary-tree

Math

0002-add-two-numbers
0007-reverse-integer
0048-rotate-image
0062-unique-paths
0066-plus-one
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0268-missing-number
0292-nim-game
0412-fizz-buzz
0912-random-pick-with-weight
1013-fibonacci-number
1014-k-closest-points-to-origin
1411-convert-binary-number-in-a-linked-list-to-integer
1444-number-of-steps-to-reduce-a-number-to-zero
1642-water-bottles
2235-add-two-integers
2650-split-with-minimum-sum
2752-sum-multiples

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0070-climbing-stairs
0091-decode-ways
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0124-binary-tree-maximum-path-sum
0131-palindrome-partitioning
0139-word-break
0152-maximum-product-subarray
0198-house-robber
0213-house-robber-ii
0300-longest-increasing-subsequence
0322-coin-change
0337-house-robber-iii
0392-is-subsequence
0416-partition-equal-subset-sum
0647-palindromic-substrings
0967-minimum-falling-path-sum
1013-fibonacci-number
3290-maximum-multiplication-score
3437-maximum-total-damage-with-spell-casting
3751-maximum-frequency-after-subarray-operation

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0039-combination-sum
0040-combination-sum-ii
0046-permutations
0051-n-queens
0077-combinations
0078-subsets
0079-word-search
0090-subsets-ii
0131-palindrome-partitioning
0212-word-search-ii
1087-brace-expansion

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0496-next-greater-element-i
0739-daily-temperatures
0853-car-fleet

Bit Manipulation

0067-add-binary
0078-subsets
0090-subsets-ii
0191-number-of-1-bits
0222-count-complete-tree-nodes
0268-missing-number
0287-find-the-duplicate-number
0861-flipping-an-image
1444-number-of-steps-to-reduce-a-number-to-zero

Database

0175-combine-two-tables
0595-big-countries
1509-replace-employee-id-with-the-unique-identifier
1908-recyclable-and-low-fat-products

Binary Search Tree

0098-validate-binary-search-tree
0108-convert-sorted-array-to-binary-search-tree
0173-binary-search-tree-iterator
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0789-kth-largest-element-in-a-stream
0938-range-sum-of-bst

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Sliding Window

0003-longest-substring-without-repeating-characters
0076-minimum-window-substring
0209-minimum-size-subarray-sum
0239-sliding-window-maximum
0424-longest-repeating-character-replacement
0567-permutation-in-string

Memoization

0070-climbing-stairs
0139-word-break
1013-fibonacci-number

Merge Sort

0023-merge-k-sorted-lists
0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream
1429-first-unique-number
1582-design-browser-history

Geometry

1014-k-closest-points-to-origin

Graph

0133-clone-graph
0207-course-schedule
0210-course-schedule-ii
0261-graph-valid-tree
0684-redundant-connection
0744-network-delay-time
1039-find-the-town-judge
2445-reachable-nodes-with-restrictions

Topological Sort

0207-course-schedule
0210-course-schedule-ii

Doubly-Linked List

0146-lru-cache
0460-lfu-cache
1582-design-browser-history

Trie

0014-longest-common-prefix
0139-word-break
0208-implement-trie-prefix-tree
0211-design-add-and-search-words-data-structure
0212-word-search-ii

Queue

0239-sliding-window-maximum
0387-first-unique-character-in-a-string
1429-first-unique-number
2195-time-needed-to-buy-tickets

Monotonic Queue

0239-sliding-window-maximum

Brainteaser

0292-nim-game

Game Theory

0292-nim-game

Interactive

0374-guess-number-higher-or-lower

Shortest Path

0744-network-delay-time

Segment Tree

3790-fruits-into-baskets-ii

Ordered Set

3790-fruits-into-baskets-ii

Randomized

0912-random-pick-with-weight

Enumeration

1656-count-good-triplets
3751-maximum-frequency-after-subarray-operation

Combinatorics

0062-unique-paths

Iterator

0173-binary-search-tree-iterator

About

My LC Solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published