Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

241 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode

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

LeetCode Topics

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0141-linked-list-cycle
0143-reorder-list
0167-two-sum-ii-input-array-is-sorted
0287-find-the-duplicate-number
1002-maximum-width-ramp
1790-lowest-common-ancestor-of-a-binary-tree-iii

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0079-word-search
0139-word-break
0179-largest-number
0227-basic-calculator-ii
0271-encode-and-decode-strings
0424-longest-repeating-character-replacement
1371-minimum-remove-to-make-valid-parentheses

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0139-word-break
0152-maximum-product-subarray
0213-house-robber-ii
0300-longest-increasing-subsequence
0322-coin-change

Array

0011-container-with-most-water
0033-search-in-rotated-sorted-array
0036-valid-sudoku
0039-combination-sum
0046-permutations
0048-rotate-image
0074-search-a-2d-matrix
0078-subsets
0079-word-search
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0139-word-break
0150-evaluate-reverse-polish-notation
0152-maximum-product-subarray
0167-two-sum-ii-input-array-is-sorted
0179-largest-number
0200-number-of-islands
0213-house-robber-ii
0238-product-of-array-except-self
0271-encode-and-decode-strings
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0322-coin-change
0347-top-k-frequent-elements
0739-daily-temperatures
0792-binary-search
0883-car-fleet
1002-maximum-width-ramp

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0039-combination-sum
0046-permutations
0078-subsets
0079-word-search

Hash Table

0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0036-valid-sudoku
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0139-word-break
0141-linked-list-cycle
0314-binary-tree-vertical-order-traversal
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
1790-lowest-common-ancestor-of-a-binary-tree-iii

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0207-course-schedule
0314-binary-tree-vertical-order-traversal
0322-coin-change
0339-nested-list-weight-sum

Binary Search

0033-search-in-rotated-sorted-array
0074-search-a-2d-matrix
0167-two-sum-ii-input-array-is-sorted
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0792-binary-search

Linked List

0002-add-two-numbers
0021-merge-two-sorted-lists
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list

Math

0002-add-two-numbers
0007-reverse-integer
0048-rotate-image
0050-powx-n
0150-evaluate-reverse-polish-notation
0227-basic-calculator-ii

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0050-powx-n
0143-reorder-list
0206-reverse-linked-list

Depth-First Search

0079-word-search
0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0200-number-of-islands
0207-course-schedule
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0314-binary-tree-vertical-order-traversal
0339-nested-list-weight-sum
0572-subtree-of-another-tree

Graph

0207-course-schedule

Topological Sort

0207-course-schedule

Matrix

0036-valid-sudoku
0048-rotate-image
0074-search-a-2d-matrix
0079-word-search
0200-number-of-islands

Greedy

0011-container-with-most-water
0179-largest-number

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands

Trie

0139-word-break

Memoization

0139-word-break

Bit Manipulation

0078-subsets
0287-find-the-duplicate-number

Tree

0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0314-binary-tree-vertical-order-traversal
0572-subtree-of-another-tree
1790-lowest-common-ancestor-of-a-binary-tree-iii

Sorting

0179-largest-number
0314-binary-tree-vertical-order-traversal
0347-top-k-frequent-elements
0883-car-fleet

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0314-binary-tree-vertical-order-traversal
0572-subtree-of-another-tree
1790-lowest-common-ancestor-of-a-binary-tree-iii

Stack

0143-reorder-list
0150-evaluate-reverse-polish-notation
0155-min-stack
0227-basic-calculator-ii
0739-daily-temperatures
0883-car-fleet
1002-maximum-width-ramp
1371-minimum-remove-to-make-valid-parentheses

Monotonic Stack

0739-daily-temperatures
0883-car-fleet
1002-maximum-width-ramp

Divide and Conquer

0105-construct-binary-tree-from-preorder-and-inorder-traversal
0347-top-k-frequent-elements

Heap (Priority Queue)

0347-top-k-frequent-elements

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Prefix Sum

0238-product-of-array-except-self

Design

0155-min-stack
0271-encode-and-decode-strings

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree

About

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

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages