Skip to content

Yamiinii/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,434 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

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

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0033-search-in-rotated-sorted-array
0039-combination-sum
0042-trapping-rain-water
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0056-merge-intervals
0057-insert-interval
0063-unique-paths-ii
0064-minimum-path-sum
0073-set-matrix-zeroes
0078-subsets
0079-word-search
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0088-merge-sorted-array
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0121-best-time-to-buy-and-sell-stock
0152-maximum-product-subarray
0153-find-minimum-in-rotated-sorted-array
0198-house-robber
0215-kth-largest-element-in-an-array
0221-maximal-square
0268-missing-number
0399-evaluate-division
0435-non-overlapping-intervals
0560-subarray-sum-equals-k
0747-min-cost-climbing-stairs
0925-construct-binary-tree-from-preorder-and-postorder-traversal
1025-minimum-cost-for-tickets
1036-rotting-oranges
1402-count-square-submatrices-with-all-ones
1700-minimum-time-to-make-rope-colorful
2262-solving-questions-with-brainpower
2552-maximum-sum-of-distinct-subarrays-with-length-k

Binary Search

0033-search-in-rotated-sorted-array
0153-find-minimum-in-rotated-sorted-array
0268-missing-number

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
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0925-construct-binary-tree-from-preorder-and-postorder-traversal

Depth-First Search

0079-word-search
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0207-course-schedule
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0399-evaluate-division
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

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
0207-course-schedule
0226-invert-binary-tree
0279-perfect-squares
0297-serialize-and-deserialize-binary-tree
0399-evaluate-division
1036-rotting-oranges

Binary 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
0110-balanced-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0297-serialize-and-deserialize-binary-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0925-construct-binary-tree-from-preorder-and-postorder-traversal

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0008-string-to-integer-atoi
0010-regular-expression-matching
0014-longest-common-prefix
0020-valid-parentheses
0022-generate-parentheses
0038-count-and-say
0044-wildcard-matching
0049-group-anagrams
0076-minimum-window-substring
0079-word-search
0091-decode-ways
0208-implement-trie-prefix-tree
0297-serialize-and-deserialize-binary-tree
0399-evaluate-division
0678-valid-parenthesis-string
1700-minimum-time-to-make-rope-colorful

Design

0208-implement-trie-prefix-tree
0297-serialize-and-deserialize-binary-tree

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0049-group-anagrams
0073-set-matrix-zeroes
0076-minimum-window-substring
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0208-implement-trie-prefix-tree
0268-missing-number
0560-subarray-sum-equals-k
0925-construct-binary-tree-from-preorder-and-postorder-traversal
2552-maximum-sum-of-distinct-subarrays-with-length-k

Divide and Conquer

0023-merge-k-sorted-lists
0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0190-reverse-bits
0191-number-of-1-bits
0215-kth-largest-element-in-an-array
0925-construct-binary-tree-from-preorder-and-postorder-traversal

Dynamic Programming

0005-longest-palindromic-substring
0010-regular-expression-matching
0022-generate-parentheses
0042-trapping-rain-water
0044-wildcard-matching
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0063-unique-paths-ii
0064-minimum-path-sum
0070-climbing-stairs
0085-maximal-rectangle
0091-decode-ways
0121-best-time-to-buy-and-sell-stock
0124-binary-tree-maximum-path-sum
0152-maximum-product-subarray
0198-house-robber
0221-maximal-square
0279-perfect-squares
0338-counting-bits
0435-non-overlapping-intervals
0678-valid-parenthesis-string
0747-min-cost-climbing-stairs
1025-minimum-cost-for-tickets
1236-n-th-tribonacci-number
1402-count-square-submatrices-with-all-ones
1700-minimum-time-to-make-rope-colorful
2262-solving-questions-with-brainpower

Greedy

0011-container-with-most-water
0044-wildcard-matching
0055-jump-game
0435-non-overlapping-intervals
0678-valid-parenthesis-string
1700-minimum-time-to-make-rope-colorful

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0088-merge-sorted-array
0215-kth-largest-element-in-an-array
0268-missing-number
0435-non-overlapping-intervals

Graph

0207-course-schedule
0399-evaluate-division

Topological Sort

0207-course-schedule

Math

0048-rotate-image
0062-unique-paths
0070-climbing-stairs
0268-missing-number
0279-perfect-squares
1236-n-th-tribonacci-number

Memoization

0070-climbing-stairs
1236-n-th-tribonacci-number

Heap (Priority Queue)

0023-merge-k-sorted-lists
0215-kth-largest-element-in-an-array

Quickselect

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

Bit Manipulation

0078-subsets
0190-reverse-bits
0191-number-of-1-bits
0268-missing-number
0338-counting-bits

Matrix

0048-rotate-image
0054-spiral-matrix
0063-unique-paths-ii
0064-minimum-path-sum
0073-set-matrix-zeroes
0079-word-search
0085-maximal-rectangle
0221-maximal-square
1036-rotting-oranges
1402-count-square-submatrices-with-all-ones

Recursion

0010-regular-expression-matching
0021-merge-two-sorted-lists
0044-wildcard-matching

Trie

0014-longest-common-prefix
0208-implement-trie-prefix-tree

Sliding Window

0003-longest-substring-without-repeating-characters
0076-minimum-window-substring
2552-maximum-sum-of-distinct-subarrays-with-length-k

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0042-trapping-rain-water
0088-merge-sorted-array

Combinatorics

0062-unique-paths

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree

Stack

0020-valid-parentheses
0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0678-valid-parenthesis-string

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0085-maximal-rectangle

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists

Merge Sort

0023-merge-k-sorted-lists

Backtracking

0022-generate-parentheses
0039-combination-sum
0077-combinations
0078-subsets
0079-word-search

Simulation

0054-spiral-matrix

Union Find

0399-evaluate-division

Shortest Path

0399-evaluate-division

Prefix Sum

0560-subarray-sum-equals-k

About

Collection of LeetCode questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors