Skip to content

JJHyunDev/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Collection of LeetCode questions to ace the coding interview! - Created using LeetHub v3

LeetCode Topics

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0036-valid-sudoku
0049-group-anagrams
0128-longest-consecutive-sequence
0217-contains-duplicate
0219-contains-duplicate-ii
0242-valid-anagram
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0535-encode-and-decode-tinyurl
0567-permutation-in-string
0981-time-based-key-value-store
1365-how-many-numbers-are-smaller-than-the-current-number
1387-find-elements-in-a-contaminated-binary-tree
1786-count-the-number-of-consistent-strings
2300-construct-string-with-repeat-limit
3146-permutation-difference-between-two-strings
3541-find-most-frequent-vowel-and-consonant
3581-the-two-sneaky-numbers-of-digitville
4008-restore-finishing-order

String

0003-longest-substring-without-repeating-characters
0020-valid-parentheses
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0424-longest-repeating-character-replacement
0535-encode-and-decode-tinyurl
0567-permutation-in-string
0981-time-based-key-value-store
1636-number-of-substrings-with-only-1s
1786-count-the-number-of-consistent-strings
1807-partitioning-into-minimum-number-of-deci-binary-numbers
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2137-final-value-of-variable-after-performing-operations
2300-construct-string-with-repeat-limit
3146-permutation-difference-between-two-strings
3194-find-words-containing-character
3379-score-of-a-string
3541-find-most-frequent-vowel-and-consonant

Greedy

0011-container-with-most-water
1285-balance-a-binary-search-tree
1807-partitioning-into-minimum-number-of-deci-binary-numbers
2148-minimum-number-of-moves-to-seat-everyone
2300-construct-string-with-repeat-limit

Heap (Priority Queue)

0347-top-k-frequent-elements
0373-find-k-pairs-with-smallest-sums
2300-construct-string-with-repeat-limit
2553-total-cost-to-hire-k-workers
3264-final-array-state-after-k-multiplication-operations-i

Counting

0347-top-k-frequent-elements
1786-count-the-number-of-consistent-strings
2300-construct-string-with-repeat-limit
3541-find-most-frequent-vowel-and-consonant
3778-transform-array-by-parity

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0033-search-in-rotated-sorted-array
0036-valid-sudoku
0042-trapping-rain-water
0049-group-anagrams
0074-search-a-2d-matrix
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0198-house-robber
0217-contains-duplicate
0219-contains-duplicate-ii
0238-product-of-array-except-self
0300-longest-increasing-subsequence
0322-coin-change
0347-top-k-frequent-elements
0373-find-k-pairs-with-smallest-sums
0704-binary-search
0739-daily-temperatures
0747-min-cost-climbing-stairs
0853-car-fleet
0875-koko-eating-bananas
1277-count-square-submatrices-with-all-ones
1365-how-many-numbers-are-smaller-than-the-current-number
1402-count-square-submatrices-with-all-ones
1652-defuse-the-bomb
1755-defuse-the-bomb
1786-count-the-number-of-consistent-strings
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2048-build-array-from-permutation
2058-concatenation-of-array
2137-final-value-of-variable-after-performing-operations
2148-minimum-number-of-moves-to-seat-everyone
2553-total-cost-to-hire-k-workers
3194-find-words-containing-character
3264-final-array-state-after-k-multiplication-operations-i
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3581-the-two-sneaky-numbers-of-digitville
3778-transform-array-by-parity
4008-restore-finishing-order

Two Pointers

0011-container-with-most-water
0015-3sum
0042-trapping-rain-water
0125-valid-palindrome
0167-two-sum-ii-input-array-is-sorted
0567-permutation-in-string
2553-total-cost-to-hire-k-workers

Simulation

2048-build-array-from-permutation
2058-concatenation-of-array
2137-final-value-of-variable-after-performing-operations
2553-total-cost-to-hire-k-workers
3264-final-array-state-after-k-multiplication-operations-i

Tree

0104-maximum-depth-of-binary-tree
0112-path-sum
0930-all-possible-full-binary-trees
0975-range-sum-of-bst
1114-binary-search-tree-to-greater-sum-tree
1243-sum-of-nodes-with-even-valued-grandparent
1285-balance-a-binary-search-tree
1387-find-elements-in-a-contaminated-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
2347-count-nodes-equal-to-average-of-subtree
2493-reverse-odd-levels-of-binary-tree

Depth-First Search

0104-maximum-depth-of-binary-tree
0112-path-sum
0813-all-paths-from-source-to-target
0975-range-sum-of-bst
1114-binary-search-tree-to-greater-sum-tree
1243-sum-of-nodes-with-even-valued-grandparent
1285-balance-a-binary-search-tree
1387-find-elements-in-a-contaminated-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
2347-count-nodes-equal-to-average-of-subtree
2493-reverse-odd-levels-of-binary-tree

Breadth-First Search

0104-maximum-depth-of-binary-tree
0112-path-sum
0322-coin-change
0813-all-paths-from-source-to-target
1243-sum-of-nodes-with-even-valued-grandparent
1387-find-elements-in-a-contaminated-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
2493-reverse-odd-levels-of-binary-tree

Binary Tree

0104-maximum-depth-of-binary-tree
0112-path-sum
0930-all-possible-full-binary-trees
0975-range-sum-of-bst
1114-binary-search-tree-to-greater-sum-tree
1243-sum-of-nodes-with-even-valued-grandparent
1285-balance-a-binary-search-tree
1387-find-elements-in-a-contaminated-binary-tree
1498-find-a-corresponding-node-of-a-binary-tree-in-a-clone-of-that-tree
2347-count-nodes-equal-to-average-of-subtree
2493-reverse-odd-levels-of-binary-tree

Binary Search Tree

0033-search-in-rotated-sorted-array
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0300-longest-increasing-subsequence
0704-binary-search
0875-koko-eating-bananas
0975-range-sum-of-bst
0981-time-based-key-value-store
1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Divide and Conquer

0347-top-k-frequent-elements
1285-balance-a-binary-search-tree

Design

0155-min-stack
0535-encode-and-decode-tinyurl
0981-time-based-key-value-store
1387-find-elements-in-a-contaminated-binary-tree

Prefix Sum

0238-product-of-array-except-self
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Backtracking

0813-all-paths-from-source-to-target

Graph

0813-all-paths-from-source-to-target

Math

0002-add-two-numbers
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
1290-convert-binary-number-in-a-linked-list-to-integer
1636-number-of-substrings-with-only-1s
1761-count-sorted-vowel-strings
2556-convert-the-temperature
2812-find-the-maximum-achievable-number
3172-divisible-and-non-divisible-sums-difference
3264-final-array-state-after-k-multiplication-operations-i
3581-the-two-sneaky-numbers-of-digitville
3676-smallest-number-with-all-set-bits

Dynamic Programming

0042-trapping-rain-water
0070-climbing-stairs
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0198-house-robber
0300-longest-increasing-subsequence
0322-coin-change
0338-counting-bits
0747-min-cost-climbing-stairs
0930-all-possible-full-binary-trees
1277-count-square-submatrices-with-all-ones
1402-count-square-submatrices-with-all-ones
1761-count-sorted-vowel-strings

Bit Manipulation

0338-counting-bits
1786-count-the-number-of-consistent-strings
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i
3676-smallest-number-with-all-set-bits

Memoization

0070-climbing-stairs
0930-all-possible-full-binary-trees

Sorting

0015-3sum
0049-group-anagrams
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0853-car-fleet
1365-how-many-numbers-are-smaller-than-the-current-number
2148-minimum-number-of-moves-to-seat-everyone
3778-transform-array-by-parity

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list
1290-convert-binary-number-in-a-linked-list-to-integer

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0206-reverse-linked-list
0930-all-possible-full-binary-trees

Matrix

0036-valid-sudoku
0074-search-a-2d-matrix
1277-count-square-submatrices-with-all-ones
1402-count-square-submatrices-with-all-ones

Combinatorics

1761-count-sorted-vowel-strings

Queue

3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Sliding Window

0003-longest-substring-without-repeating-characters
0219-contains-duplicate-ii
0424-longest-repeating-character-replacement
0567-permutation-in-string
1652-defuse-the-bomb
1755-defuse-the-bomb
3475-minimum-operations-to-make-binary-array-elements-equal-to-one-i

Counting Sort

1365-how-many-numbers-are-smaller-than-the-current-number
2148-minimum-number-of-moves-to-seat-everyone

Bucket Sort

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Hash Function

0535-encode-and-decode-tinyurl

Union Find

0128-longest-consecutive-sequence

Stack

0020-valid-parentheses
0042-trapping-rain-water
0150-evaluate-reverse-polish-notation
0155-min-stack
0739-daily-temperatures
0853-car-fleet

Monotonic Stack

0042-trapping-rain-water
0739-daily-temperatures
0853-car-fleet

About

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v3](https://github.com/raphaelheinz/LeetHub-3.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages