Skip to content
rohheittPublic

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

750 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding

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

LeetCode Topics

Tree

0096-unique-binary-search-trees
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0222-count-complete-tree-nodes
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree

Depth-First Search

0100-same-tree
0101-symmetric-tree
0110-balanced-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree
0547-number-of-provinces
0684-redundant-connection
0733-flood-fill
0785-is-graph-bipartite
0841-keys-and-rooms
1971-find-if-path-exists-in-graph

Binary Tree

0096-unique-binary-search-trees
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0108-convert-sorted-array-to-binary-search-tree
0110-balanced-binary-tree
0112-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0222-count-complete-tree-nodes
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree

Stack

0020-valid-parentheses
0032-longest-valid-parentheses
0042-trapping-rain-water
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0155-min-stack
0234-palindrome-linked-list
0496-next-greater-element-i
0739-daily-temperatures
1047-remove-all-adjacent-duplicates-in-string

Array

0001-two-sum
0015-3sum
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0042-trapping-rain-water
0053-maximum-subarray
0056-merge-intervals
0075-sort-colors
0081-search-in-rotated-sorted-array-ii
0088-merge-sorted-array
0108-convert-sorted-array-to-binary-search-tree
0136-single-number
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0198-house-robber
0200-number-of-islands
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0229-majority-element-ii
0238-product-of-array-except-self
0240-search-a-2d-matrix-ii
0268-missing-number
0283-move-zeroes
0287-find-the-duplicate-number
0322-coin-change
0416-partition-equal-subset-sum
0485-max-consecutive-ones
0496-next-greater-element-i
0560-subarray-sum-equals-k
0628-maximum-product-of-three-numbers
0643-maximum-average-subarray-i
0646-maximum-length-of-pair-chain
0733-flood-fill
0739-daily-temperatures
0746-min-cost-climbing-stairs
0881-boats-to-save-people
0977-squares-of-a-sorted-array
0994-rotting-oranges
1029-two-city-scheduling
1464-maximum-product-of-two-elements-in-an-array
1480-running-sum-of-1d-array
1752-check-if-array-is-sorted-and-rotated
2965-find-missing-and-repeated-values
3731-find-missing-elements

Divide and Conquer

0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0169-majority-element
0215-kth-largest-element-in-an-array
0240-search-a-2d-matrix-ii

Binary Search Tree

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0069-sqrtx
0081-search-in-rotated-sorted-array-ii
0096-unique-binary-search-trees
0108-convert-sorted-array-to-binary-search-tree
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0222-count-complete-tree-nodes
0235-lowest-common-ancestor-of-a-binary-search-tree
0240-search-a-2d-matrix-ii
0268-missing-number
0287-find-the-duplicate-number

Two Pointers

0015-3sum
0016-3sum-closest
0026-remove-duplicates-from-sorted-array
0027-remove-element
0042-trapping-rain-water
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0234-palindrome-linked-list
0283-move-zeroes
0287-find-the-duplicate-number
0344-reverse-string
0392-is-subsequence
0876-middle-of-the-linked-list
0881-boats-to-save-people
0977-squares-of-a-sorted-array
2095-delete-the-middle-node-of-a-linked-list
2396-strictly-palindromic-number

Hash Table

0001-two-sum
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0169-majority-element
0205-isomorphic-strings
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0268-missing-number
0496-next-greater-element-i
0560-subarray-sum-equals-k
2965-find-missing-and-repeated-values
3731-find-missing-elements

Sorting

0015-3sum
0016-3sum-closest
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0217-contains-duplicate
0229-majority-element-ii
0242-valid-anagram
0268-missing-number
0628-maximum-product-of-three-numbers
0646-maximum-length-of-pair-chain
0881-boats-to-save-people
0977-squares-of-a-sorted-array
1029-two-city-scheduling
1464-maximum-product-of-two-elements-in-an-array
3731-find-missing-elements

Counting

0169-majority-element
0229-majority-element-ii

Linked List

0092-reverse-linked-list-ii
0141-linked-list-cycle
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0203-remove-linked-list-elements
0206-reverse-linked-list
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0876-middle-of-the-linked-list
2095-delete-the-middle-node-of-a-linked-list

Recursion

0044-wildcard-matching
0203-remove-linked-list-elements
0206-reverse-linked-list
0231-power-of-two
0234-palindrome-linked-list
0326-power-of-three
0509-fibonacci-number

Bit Manipulation

0136-single-number
0222-count-complete-tree-nodes
0231-power-of-two
0268-missing-number
0287-find-the-duplicate-number
0338-counting-bits

String

0020-valid-parentheses
0032-longest-valid-parentheses
0044-wildcard-matching
0058-length-of-last-word
0072-edit-distance
0125-valid-palindrome
0168-excel-sheet-column-title
0205-isomorphic-strings
0242-valid-anagram
0344-reverse-string
0392-is-subsequence
1047-remove-all-adjacent-duplicates-in-string
1143-longest-common-subsequence
3498-reverse-degree-of-a-string

Math

0009-palindrome-number
0069-sqrtx
0070-climbing-stairs
0096-unique-binary-search-trees
0168-excel-sheet-column-title
0189-rotate-array
0231-power-of-two
0268-missing-number
0326-power-of-three
0509-fibonacci-number
0628-maximum-product-of-three-numbers
1492-the-kth-factor-of-n
1952-three-divisors
2396-strictly-palindromic-number
2965-find-missing-and-repeated-values
3870-count-commas-in-range
3871-count-commas-in-range-ii

Dynamic Programming

0032-longest-valid-parentheses
0042-trapping-rain-water
0044-wildcard-matching
0053-maximum-subarray
0070-climbing-stairs
0072-edit-distance
0096-unique-binary-search-trees
0198-house-robber
0322-coin-change
0338-counting-bits
0392-is-subsequence
0416-partition-equal-subset-sum
0509-fibonacci-number
0646-maximum-length-of-pair-chain
0746-min-cost-climbing-stairs
1143-longest-common-subsequence

Monotonic Stack

0042-trapping-rain-water
0496-next-greater-element-i
0739-daily-temperatures

Greedy

0044-wildcard-matching
0646-maximum-length-of-pair-chain
0881-boats-to-save-people
1029-two-city-scheduling

Sliding Window

0643-maximum-average-subarray-i

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
1464-maximum-product-of-two-elements-in-an-array

Quickselect

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

Prefix Sum

0238-product-of-array-except-self
0560-subarray-sum-equals-k
1480-running-sum-of-1d-array

Memoization

0070-climbing-stairs
0509-fibonacci-number

Timsort

0881-boats-to-save-people

Matrix

0200-number-of-islands
0240-search-a-2d-matrix-ii
0733-flood-fill
0994-rotting-oranges
2965-find-missing-and-repeated-values

Quicksort

0075-sort-colors

Bubble Sort

0075-sort-colors

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0112-path-sum
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0226-invert-binary-tree
0322-coin-change
0547-number-of-provinces
0684-redundant-connection
0733-flood-fill
0785-is-graph-bipartite
0841-keys-and-rooms
0994-rotting-oranges
1971-find-if-path-exists-in-graph

Union-Find

0200-number-of-islands
0547-number-of-provinces
0684-redundant-connection
0785-is-graph-bipartite
1971-find-if-path-exists-in-graph

Graph Theory

0207-course-schedule
0210-course-schedule-ii
0547-number-of-provinces
0684-redundant-connection
0785-is-graph-bipartite
0841-keys-and-rooms
1971-find-if-path-exists-in-graph

Floyd's Cycle Finding Algorithm

0141-linked-list-cycle
0142-linked-list-cycle-ii

Design

0155-min-stack

Boyer–Moore Majority Vote Algorithm

0229-majority-element-ii

Number Theory

1492-the-kth-factor-of-n
1952-three-divisors

Prime Factorization

1492-the-kth-factor-of-n
1952-three-divisors

Enumeration

1952-three-divisors

Sieve Theory

1952-three-divisors

Graph Coloring

0785-is-graph-bipartite

Bipartite Graph

0785-is-graph-bipartite

Topological Sort

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

Directed Acyclic Graph

0207-course-schedule

Simulation

3498-reverse-degree-of-a-string

Brainteaser

2396-strictly-palindromic-number

Bracket Sequences

0020-valid-parentheses
0032-longest-valid-parentheses

Knapsack Problem

0322-coin-change
0416-partition-equal-subset-sum

0-1 Knapsack

0416-partition-equal-subset-sum

Complete Knapsack

0322-coin-change

Binary Lifting

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

Lowest Common Ancestor

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

Longest Common Subsequence

1143-longest-common-subsequence

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages