Skip to content

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Notifications You must be signed in to change notification settings

JoyJaewon/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

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

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0036-valid-sudoku
0039-combination-sum
0041-first-missing-positive
0042-trapping-rain-water
0046-permutations
0049-group-anagrams
0055-jump-game
0056-merge-intervals
0074-search-a-2d-matrix
0075-sort-colors
0078-subsets
0079-word-search
0088-merge-sorted-array
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
0200-number-of-islands
0204-count-primes
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0238-product-of-array-except-self
0253-meeting-rooms-ii
0271-encode-and-decode-strings
0286-walls-and-gates
0334-increasing-triplet-subsequence
0347-top-k-frequent-elements
0380-insert-delete-getrandom-o1
0490-the-maze
0539-minimum-time-difference
0560-subarray-sum-equals-k
0599-minimum-index-sum-of-two-lists
0658-find-k-closest-elements
0695-max-area-of-island
0733-flood-fill
0739-daily-temperatures
0747-min-cost-climbing-stairs
0792-binary-search
0882-peak-index-in-a-mountain-array
0883-car-fleet
0907-koko-eating-bananas
1002-maximum-width-ramp
1014-k-closest-points-to-origin
1036-rotting-oranges
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1059-missing-element-in-sorted-array
1127-last-stone-weight
1497-design-a-stack-with-increment-operation
1539-diagonal-traverse-ii
1586-longest-subarray-of-1s-after-deleting-one-element
1833-find-the-highest-altitude
3311-ant-on-the-boundary
3321-type-of-triangle

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0019-remove-nth-node-from-end-of-list
0042-trapping-rain-water
0061-rotate-list
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0143-reorder-list
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0253-meeting-rooms-ii
0392-is-subsequence
0567-permutation-in-string
0658-find-k-closest-elements
1894-merge-strings-alternately

Greedy

0011-container-with-most-water
0055-jump-game
0253-meeting-rooms-ii
0334-increasing-triplet-subsequence

Sorting

0015-3sum
0016-3sum-closest
0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0253-meeting-rooms-ii
0347-top-k-frequent-elements
0539-minimum-time-difference
0658-find-k-closest-elements
0883-car-fleet
1014-k-closest-points-to-origin
1539-diagonal-traverse-ii
3321-type-of-triangle

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0253-meeting-rooms-ii
0347-top-k-frequent-elements
0658-find-k-closest-elements
0744-network-delay-time
1014-k-closest-points-to-origin
1127-last-stone-weight
1539-diagonal-traverse-ii

Prefix Sum

0238-product-of-array-except-self
0253-meeting-rooms-ii
0560-subarray-sum-equals-k
1046-max-consecutive-ones-iii
1833-find-the-highest-altitude
3311-ant-on-the-boundary

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array
0347-top-k-frequent-elements
1014-k-closest-points-to-origin

Quickselect

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

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0036-valid-sudoku
0041-first-missing-positive
0049-group-anagrams
0127-word-ladder
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0146-lru-cache
0217-contains-duplicate
0347-top-k-frequent-elements
0380-insert-delete-getrandom-o1
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0560-subarray-sum-equals-k
0567-permutation-in-string
0599-minimum-index-sum-of-two-lists
3267-find-longest-special-substring-that-occurs-thrice-i

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements
3267-find-longest-special-substring-that-occurs-thrice-i

Math

0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0067-add-binary
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0204-count-primes
0380-insert-delete-getrandom-o1
0539-minimum-time-difference
1014-k-closest-points-to-origin
3321-type-of-triangle

Geometry

1014-k-closest-points-to-origin

Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
1544-count-good-nodes-in-binary-tree

Depth-First Search

0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0490-the-maze
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0695-max-area-of-island
0733-flood-fill
0744-network-delay-time
0871-keys-and-rooms
1544-count-good-nodes-in-binary-tree

Binary Search Tree

0004-median-of-two-sorted-arrays
0074-search-a-2d-matrix
0098-validate-binary-search-tree
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0230-kth-smallest-element-in-a-bst
0658-find-k-closest-elements
0792-binary-search
0882-peak-index-in-a-mountain-array
0907-koko-eating-bananas
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1059-missing-element-in-sorted-array
3267-find-longest-special-substring-that-occurs-thrice-i

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
1544-count-good-nodes-in-binary-tree

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0127-word-ladder
0199-binary-tree-right-side-view
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0286-walls-and-gates
0301-remove-invalid-parentheses
0490-the-maze
0695-max-area-of-island
0733-flood-fill
0744-network-delay-time
0871-keys-and-rooms
1036-rotting-oranges
1544-count-good-nodes-in-binary-tree

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands
0695-max-area-of-island

Matrix

0036-valid-sudoku
0074-search-a-2d-matrix
0079-word-search
0200-number-of-islands
0286-walls-and-gates
0490-the-maze
0695-max-area-of-island
0733-flood-fill
1036-rotting-oranges

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0055-jump-game
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0131-palindrome-partitioning
0392-is-subsequence
0747-min-cost-climbing-stairs
1178-valid-palindrome-iii
1586-longest-subarray-of-1s-after-deleting-one-element

Stack

0020-valid-parentheses
0042-trapping-rain-water
0143-reorder-list
0150-evaluate-reverse-polish-notation
0155-min-stack
0739-daily-temperatures
0883-car-fleet
1002-maximum-width-ramp
1497-design-a-stack-with-increment-operation

Monotonic Stack

0042-trapping-rain-water
0739-daily-temperatures
0883-car-fleet
1002-maximum-width-ramp

Design

0146-lru-cache
0155-min-stack
0271-encode-and-decode-strings
0380-insert-delete-getrandom-o1
1497-design-a-stack-with-increment-operation

Graph

0207-course-schedule
0210-course-schedule-ii
0744-network-delay-time
0871-keys-and-rooms

Topological Sort

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

Shortest Path

0744-network-delay-time

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0013-roman-to-integer
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0049-group-anagrams
0067-add-binary
0079-word-search
0125-valid-palindrome
0127-word-ladder
0131-palindrome-partitioning
0151-reverse-words-in-a-string
0271-encode-and-decode-strings
0301-remove-invalid-parentheses
0392-is-subsequence
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0468-validate-ip-address
0539-minimum-time-difference
0567-permutation-in-string
0599-minimum-index-sum-of-two-lists
1178-valid-palindrome-iii
1894-merge-strings-alternately
3267-find-longest-special-substring-that-occurs-thrice-i

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0438-find-all-anagrams-in-a-string
0567-permutation-in-string
0658-find-k-closest-elements
1046-max-consecutive-ones-iii
1586-longest-subarray-of-1s-after-deleting-one-element
3267-find-longest-special-substring-that-occurs-thrice-i

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0039-combination-sum
0046-permutations
0078-subsets
0079-word-search
0131-palindrome-partitioning
0301-remove-invalid-parentheses
0865-robot-room-cleaner

Bit Manipulation

0067-add-binary
0078-subsets

Memoization

0070-climbing-stairs

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0061-rotate-list
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0146-lru-cache
0206-reverse-linked-list

Recursion

0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list

Interactive

0865-robot-room-cleaner

Randomized

0380-insert-delete-getrandom-o1

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Simulation

0067-add-binary
3311-ant-on-the-boundary

Merge Sort

0023-merge-k-sorted-lists

Doubly-Linked List

0146-lru-cache

Enumeration

0204-count-primes

Number Theory

0204-count-primes

About

A collection of LeetCode questions to ace the coding interview! - Created using [LeetHub v2](https://github.com/arunbhardwaj/LeetHub-2.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published