Skip to content

flick-23/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Topics

Tree

0103-binary-tree-zigzag-level-order-traversal
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
1653-number-of-good-leaf-nodes-pairs

Depth-First Search

0210-course-schedule-ii
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0547-number-of-provinces
1073-number-of-enclaves
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1653-number-of-good-leaf-nodes-pairs

Binary Tree

0103-binary-tree-zigzag-level-order-traversal
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
1653-number-of-good-leaf-nodes-pairs

Hash Table

0003-longest-substring-without-repeating-characters
0041-first-missing-positive
0049-group-anagrams
0424-longest-repeating-character-replacement
0451-sort-characters-by-frequency
0525-contiguous-array
0560-subarray-sum-equals-k
0648-replace-words
0768-partition-labels
0940-fruit-into-baskets
1482-how-many-numbers-are-smaller-than-the-current-number
3267-find-longest-special-substring-that-occurs-thrice-i

Two Pointers

0028-find-the-index-of-the-first-occurrence-in-a-string
0031-next-permutation
0768-partition-labels

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0028-find-the-index-of-the-first-occurrence-in-a-string
0038-count-and-say
0049-group-anagrams
0214-shortest-palindrome
0297-serialize-and-deserialize-binary-tree
0394-decode-string
0424-longest-repeating-character-replacement
0451-sort-characters-by-frequency
0648-replace-words
0768-partition-labels
1371-minimum-remove-to-make-valid-parentheses
1508-longest-happy-prefix
3267-find-longest-special-substring-that-occurs-thrice-i

Greedy

0045-jump-game-ii
0768-partition-labels
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array

Array

0031-next-permutation
0041-first-missing-positive
0045-jump-game-ii
0049-group-anagrams
0188-best-time-to-buy-and-sell-stock-iv
0198-house-robber
0213-house-robber-ii
0416-partition-equal-subset-sum
0525-contiguous-array
0560-subarray-sum-equals-k
0648-replace-words
0735-asteroid-collision
0907-koko-eating-bananas
0912-random-pick-with-weight
0940-fruit-into-baskets
0967-minimum-falling-path-sum
1046-max-consecutive-ones-iii
1073-number-of-enclaves
1482-how-many-numbers-are-smaller-than-the-current-number
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
1669-minimum-cost-to-cut-a-stick

Dynamic Programming

0045-jump-game-ii
0188-best-time-to-buy-and-sell-stock-iv
0198-house-robber
0213-house-robber-ii
0416-partition-equal-subset-sum
0967-minimum-falling-path-sum
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array
1669-minimum-cost-to-cut-a-stick

Matrix

0967-minimum-falling-path-sum
1073-number-of-enclaves

Breadth-First Search

0103-binary-tree-zigzag-level-order-traversal
0210-course-schedule-ii
0297-serialize-and-deserialize-binary-tree
0547-number-of-provinces
1073-number-of-enclaves
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Graph

0210-course-schedule-ii
0547-number-of-provinces
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Topological Sort

0210-course-schedule-ii
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph

Union Find

0547-number-of-provinces
1073-number-of-enclaves

Design

0297-serialize-and-deserialize-binary-tree

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree
0907-koko-eating-bananas
0912-random-pick-with-weight
1046-max-consecutive-ones-iii
3267-find-longest-special-substring-that-occurs-thrice-i

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0214-shortest-palindrome
1508-longest-happy-prefix

Rolling Hash

0214-shortest-palindrome
1508-longest-happy-prefix

Hash Function

0214-shortest-palindrome
1508-longest-happy-prefix

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0940-fruit-into-baskets
1046-max-consecutive-ones-iii
3267-find-longest-special-substring-that-occurs-thrice-i

Prefix Sum

0525-contiguous-array
0560-subarray-sum-equals-k
0912-random-pick-with-weight
1046-max-consecutive-ones-iii

Stack

0394-decode-string
0735-asteroid-collision
1371-minimum-remove-to-make-valid-parentheses
1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array

Simulation

0735-asteroid-collision

Sorting

0049-group-anagrams
0451-sort-characters-by-frequency
1482-how-many-numbers-are-smaller-than-the-current-number
1669-minimum-cost-to-cut-a-stick

Counting

0451-sort-characters-by-frequency
1482-how-many-numbers-are-smaller-than-the-current-number
3267-find-longest-special-substring-that-occurs-thrice-i

Math

0912-random-pick-with-weight

Randomized

0912-random-pick-with-weight

Recursion

0394-decode-string

Monotonic Stack

1633-minimum-number-of-increments-on-subarrays-to-form-a-target-array

Trie

0648-replace-words

Heap (Priority Queue)

0451-sort-characters-by-frequency

Bucket Sort

0451-sort-characters-by-frequency

Releases

No releases published

Packages

No packages published

Languages