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

Rahul-Encoded/LeetHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetHub

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

Math

0007-reverse-integer
0009-palindrome-number
0189-rotate-array
0268-missing-number
0507-perfect-number
0728-self-dividing-numbers
1013-fibonacci-number
1406-subtract-the-product-and-sum-of-digits-of-an-integer

Two Pointers

0026-remove-duplicates-from-sorted-array
0031-next-permutation
0075-sort-colors
0125-valid-palindrome
0189-rotate-array
0283-move-zeroes
0349-intersection-of-two-arrays
2271-rearrange-array-elements-by-sign

String

0125-valid-palindrome

Dynamic Programming

0121-best-time-to-buy-and-sell-stock
1013-fibonacci-number

Recursion

0206-reverse-linked-list
1013-fibonacci-number

Memoization

1013-fibonacci-number

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0073-set-matrix-zeroes
0075-sort-colors
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0136-single-number
0169-majority-element
0189-rotate-array
0200-number-of-islands
0268-missing-number
0283-move-zeroes
0349-intersection-of-two-arrays
0442-find-all-duplicates-in-an-array
0485-max-consecutive-ones
0560-subarray-sum-equals-k
0733-flood-fill
0882-peak-index-in-a-mountain-array
1231-replace-elements-with-greatest-element-on-right-side
1319-unique-number-of-occurrences
2271-rearrange-array-elements-by-sign

Hash Table

0001-two-sum
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0169-majority-element
0268-missing-number
0349-intersection-of-two-arrays
0442-find-all-duplicates-in-an-array
0560-subarray-sum-equals-k
1319-unique-number-of-occurrences

Binary Search

0268-missing-number
0349-intersection-of-two-arrays
0882-peak-index-in-a-mountain-array

Bit Manipulation

0136-single-number
0191-number-of-1-bits
0268-missing-number
0476-number-complement
1054-complement-of-base-10-integer

Sorting

0075-sort-colors
0169-majority-element
0268-missing-number
0349-intersection-of-two-arrays

Divide and Conquer

0169-majority-element
0191-number-of-1-bits

Counting

0169-majority-element

Simulation

2271-rearrange-array-elements-by-sign

Prefix Sum

0560-subarray-sum-equals-k

Union Find

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

Matrix

0073-set-matrix-zeroes
0200-number-of-islands
0733-flood-fill

Linked List

0206-reverse-linked-list

Tree

0450-delete-node-in-a-bst

Binary Search Tree

0450-delete-node-in-a-bst

Binary Tree

0450-delete-node-in-a-bst

Depth-First Search

0200-number-of-islands
0733-flood-fill

Breadth-First Search

0200-number-of-islands
0733-flood-fill

LeetCode Topics

Depth-First Search

0386-lexicographical-numbers
0744-network-delay-time
1484-linked-list-in-binary-tree

Breadth-First Search

0744-network-delay-time
1484-linked-list-in-binary-tree

Graph

0744-network-delay-time

Heap (Priority Queue)

0632-smallest-range-covering-elements-from-k-lists
0744-network-delay-time
2054-the-number-of-the-smallest-unoccupied-chair
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations

Shortest Path

0744-network-delay-time

Linked List

0002-add-two-numbers
0141-linked-list-cycle
0237-delete-node-in-a-linked-list
0432-all-oone-data-structure
0725-split-linked-list-in-parts
0859-design-circular-deque
1484-linked-list-in-binary-tree
2411-spiral-matrix-iv
2903-insert-greatest-common-divisors-in-linked-list
3501-delete-nodes-from-linked-list-present-in-array

Hash Table

0141-linked-list-cycle
0432-all-oone-data-structure
0567-permutation-in-string
0632-smallest-range-covering-elements-from-k-lists
0906-walking-robot-simulation
0920-uncommon-words-from-two-sentences
1256-rank-transform-of-an-array
1473-find-the-longest-substring-containing-vowels-in-even-counts
1620-check-if-array-pairs-are-divisible-by-k
1694-make-sum-divisible-by-p
1786-count-the-number-of-consistent-strings
2054-the-number-of-the-smallest-unoccupied-chair
2755-extra-characters-in-a-string
3329-find-the-length-of-the-longest-common-prefix
3501-delete-nodes-from-linked-list-present-in-array

Two Pointers

0141-linked-list-cycle
0567-permutation-in-string
1923-sentence-similarity-iii
2095-minimum-number-of-swaps-to-make-the-string-balanced
2488-divide-intervals-into-minimum-number-of-groups
3195-separate-black-and-white-balls

Array

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0179-largest-number
0539-minimum-time-difference
0632-smallest-range-covering-elements-from-k-lists
0729-my-calendar-i
0731-my-calendar-ii
0792-binary-search
0859-design-circular-deque
0906-walking-robot-simulation
1002-maximum-width-ramp
1256-rank-transform-of-an-array
1435-xor-queries-of-a-subarray
1497-design-a-stack-with-increment-operation
1620-check-if-array-pairs-are-divisible-by-k
1694-make-sum-divisible-by-p
1786-count-the-number-of-consistent-strings
1923-sentence-similarity-iii
2006-find-the-student-that-will-replace-the-chalk
2054-the-number-of-the-smallest-unoccupied-chair
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2411-spiral-matrix-iv
2488-divide-intervals-into-minimum-number-of-groups
2494-sum-of-prefix-scores-of-strings
2503-longest-subarray-with-maximum-bitwise-and
2616-maximal-score-after-applying-k-operations
2755-extra-characters-in-a-string
3329-find-the-length-of-the-longest-common-prefix
3501-delete-nodes-from-linked-list-present-in-array

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0729-my-calendar-i
0731-my-calendar-ii
0792-binary-search
2006-find-the-student-that-will-replace-the-chalk

Matrix

2132-convert-1d-array-into-2d-array
2411-spiral-matrix-iv

Simulation

0906-walking-robot-simulation
2006-find-the-student-that-will-replace-the-chalk
2076-sum-of-digits-of-string-after-convert
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2411-spiral-matrix-iv
2800-minimum-string-length-after-removing-substrings

Prefix Sum

0731-my-calendar-ii
1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1694-make-sum-divisible-by-p
2006-find-the-student-that-will-replace-the-chalk
2488-divide-intervals-into-minimum-number-of-groups

String

0179-largest-number
0214-shortest-palindrome
0241-different-ways-to-add-parentheses
0539-minimum-time-difference
0567-permutation-in-string
0920-uncommon-words-from-two-sentences
0957-minimum-add-to-make-parentheses-valid
1473-find-the-longest-substring-containing-vowels-in-even-counts
1786-count-the-number-of-consistent-strings
1923-sentence-similarity-iii
2076-sum-of-digits-of-string-after-convert
2095-minimum-number-of-swaps-to-make-the-string-balanced
2494-sum-of-prefix-scores-of-strings
2755-extra-characters-in-a-string
2800-minimum-string-length-after-removing-substrings
3195-separate-black-and-white-balls
3329-find-the-length-of-the-longest-common-prefix

Math

0002-add-two-numbers
0241-different-ways-to-add-parentheses
0539-minimum-time-difference
2155-find-missing-observations
2903-insert-greatest-common-divisors-in-linked-list

Tree

1484-linked-list-in-binary-tree

Binary Tree

1484-linked-list-in-binary-tree

Recursion

0002-add-two-numbers
0241-different-ways-to-add-parentheses

Number Theory

2903-insert-greatest-common-divisors-in-linked-list

Bit Manipulation

1435-xor-queries-of-a-subarray
1473-find-the-longest-substring-containing-vowels-in-even-counts
1786-count-the-number-of-consistent-strings
2323-minimum-bit-flips-to-convert-number
2503-longest-subarray-with-maximum-bitwise-and

Counting

0920-uncommon-words-from-two-sentences
1620-check-if-array-pairs-are-divisible-by-k
1786-count-the-number-of-consistent-strings
2494-sum-of-prefix-scores-of-strings

Brainteaser

2503-longest-subarray-with-maximum-bitwise-and

Sorting

0179-largest-number
0539-minimum-time-difference
0632-smallest-range-covering-elements-from-k-lists
1256-rank-transform-of-an-array
2488-divide-intervals-into-minimum-number-of-groups

Greedy

0179-largest-number
0632-smallest-range-covering-elements-from-k-lists
0957-minimum-add-to-make-parentheses-valid
2095-minimum-number-of-swaps-to-make-the-string-balanced
2488-divide-intervals-into-minimum-number-of-groups
2616-maximal-score-after-applying-k-operations
3195-separate-black-and-white-balls

Dynamic Programming

0241-different-ways-to-add-parentheses
2755-extra-characters-in-a-string

Memoization

0241-different-ways-to-add-parentheses

Rolling Hash

0214-shortest-palindrome

String Matching

0214-shortest-palindrome

Hash Function

0214-shortest-palindrome

Trie

0386-lexicographical-numbers
0440-k-th-smallest-in-lexicographical-order
2494-sum-of-prefix-scores-of-strings
2755-extra-characters-in-a-string
3329-find-the-length-of-the-longest-common-prefix

Design

0432-all-oone-data-structure
0729-my-calendar-i
0731-my-calendar-ii
0859-design-circular-deque
1497-design-a-stack-with-increment-operation

Segment Tree

0729-my-calendar-i
0731-my-calendar-ii

Ordered Set

0729-my-calendar-i
0731-my-calendar-ii

Queue

0859-design-circular-deque

Doubly-Linked List

0432-all-oone-data-structure

Stack

0957-minimum-add-to-make-parentheses-valid
1002-maximum-width-ramp
1497-design-a-stack-with-increment-operation
2095-minimum-number-of-swaps-to-make-the-string-balanced
2800-minimum-string-length-after-removing-substrings

Sliding Window

0567-permutation-in-string
0632-smallest-range-covering-elements-from-k-lists

Monotonic Stack

1002-maximum-width-ramp

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