Skip to content

Latest commit

 

History

352 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0018-4sum
0026-remove-duplicates-from-sorted-array
0031-next-permutation
0033-search-in-rotated-sorted-array
0041-first-missing-positive
0042-trapping-rain-water
0048-rotate-image
0053-maximum-subarray
0054-spiral-matrix
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0136-single-number
0137-single-number-ii
0152-maximum-product-subarray
0169-majority-element
0189-rotate-array
0209-minimum-size-subarray-sum
0229-majority-element-ii
0238-product-of-array-except-self
0268-missing-number
0283-move-zeroes
0493-reverse-pairs
0540-single-element-in-a-sorted-array
0560-subarray-sum-equals-k
0643-maximum-average-subarray-i
0645-set-mismatch
0704-binary-search
0881-boats-to-save-people
0912-sort-an-array
0930-binary-subarrays-with-sum
0977-squares-of-a-sorted-array
1260-shift-2d-grid
1752-check-if-array-is-sorted-and-rotated
2091-removing-minimum-and-maximum-from-array
2149-rearrange-array-elements-by-sign
3483-unique-3-digit-even-numbers
3550-smallest-index-with-digit-sum-equal-to-index
3718-smallest-missing-multiple-of-k
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii
3903-smallest-stable-index-i
3904-smallest-stable-index-ii

Sliding Window

0209-minimum-size-subarray-sum
0643-maximum-average-subarray-i
0930-binary-subarrays-with-sum
2904-shortest-and-lexicographically-smallest-beautiful-string

Math

0009-palindrome-number
0048-rotate-image
0070-climbing-stairs
0189-rotate-array
0268-missing-number
0507-perfect-number
0509-fibonacci-number
1927-sum-game
3536-maximum-product-of-two-digits
3550-smallest-index-with-digit-sum-equal-to-index
3622-check-divisibility-by-digit-sum-and-product
3870-count-commas-in-range
3871-count-commas-in-range-ii
3875-construct-uniform-parity-array-i
3876-construct-uniform-parity-array-ii

Two Pointers

0011-container-with-most-water
0015-3sum
0016-3sum-closest
0018-4sum
0026-remove-duplicates-from-sorted-array
0028-find-the-index-of-the-first-occurrence-in-a-string
0031-next-permutation
0042-trapping-rain-water
0075-sort-colors
0088-merge-sorted-array
0189-rotate-array
0283-move-zeroes
0881-boats-to-save-people
0977-squares-of-a-sorted-array
2149-rearrange-array-elements-by-sign

String

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
0686-repeated-string-match
1614-maximum-nesting-depth-of-the-parentheses
1927-sum-game
2351-first-letter-to-appear-twice
2904-shortest-and-lexicographically-smallest-beautiful-string
3498-reverse-degree-of-a-string

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
0686-repeated-string-match

Z Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
0686-repeated-string-match

Knuth–Morris–Pratt Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
0686-repeated-string-match

Boyer–Moore String-Search Algorithm

0028-find-the-index-of-the-first-occurrence-in-a-string
0686-repeated-string-match

Greedy

0011-container-with-most-water
0881-boats-to-save-people
1927-sum-game
2091-removing-minimum-and-maximum-from-array

Sorting

0015-3sum
0016-3sum-closest
0018-4sum
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0169-majority-element
0229-majority-element-ii
0268-missing-number
0645-set-mismatch
0881-boats-to-save-people
0912-sort-an-array
0977-squares-of-a-sorted-array
3536-maximum-product-of-two-digits

Binary Search

0033-search-in-rotated-sorted-array
0209-minimum-size-subarray-sum
0268-missing-number
0493-reverse-pairs
0540-single-element-in-a-sorted-array
0704-binary-search

Dynamic Programming

0042-trapping-rain-water
0053-maximum-subarray
0070-climbing-stairs
0118-pascals-triangle
0119-pascals-triangle-ii
0121-best-time-to-buy-and-sell-stock
0152-maximum-product-subarray
0509-fibonacci-number

Stack

0042-trapping-rain-water
1614-maximum-nesting-depth-of-the-parentheses

Monotonic Stack

0042-trapping-rain-water

Quicksort

0056-merge-intervals
0075-sort-colors

Bubble Sort

0075-sort-colors

Timsort

0881-boats-to-save-people

Matrix

0048-rotate-image
0054-spiral-matrix
1260-shift-2d-grid

Game Theory

1927-sum-game

Hash Table

0001-two-sum
0041-first-missing-positive
0128-longest-consecutive-sequence
0169-majority-element
0229-majority-element-ii
0268-missing-number
0560-subarray-sum-equals-k
0645-set-mismatch
0930-binary-subarrays-with-sum
2351-first-letter-to-appear-twice
3483-unique-3-digit-even-numbers
3718-smallest-missing-multiple-of-k

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0560-subarray-sum-equals-k
0930-binary-subarrays-with-sum
3903-smallest-stable-index-i
3904-smallest-stable-index-ii

Bit Manipulation

0136-single-number
0137-single-number-ii
0268-missing-number
0645-set-mismatch
2351-first-letter-to-appear-twice

Counting

0169-majority-element
0229-majority-element-ii
2351-first-letter-to-appear-twice

Simulation

0054-spiral-matrix
1260-shift-2d-grid
2149-rearrange-array-elements-by-sign
3498-reverse-degree-of-a-string

Divide and Conquer

0053-maximum-subarray
0169-majority-element
0493-reverse-pairs
0912-sort-an-array

Boyer–Moore Majority Vote Algorithm

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

Recursion

0509-fibonacci-number
3483-unique-3-digit-even-numbers

Memoization

0070-climbing-stairs
0509-fibonacci-number

Union-Find

0128-longest-consecutive-sequence

Enumeration

3483-unique-3-digit-even-numbers

Binary Indexed Tree

0493-reverse-pairs

Segment Tree

0493-reverse-pairs

Merge Sort

0493-reverse-pairs
0912-sort-an-array

Ordered Set

0493-reverse-pairs

Treap

0493-reverse-pairs

Bracket Sequences

1614-maximum-nesting-depth-of-the-parentheses

Heap (Priority Queue)

0912-sort-an-array

Bucket Sort

0912-sort-an-array

Radix Sort

0912-sort-an-array

Counting Sort

0912-sort-an-array

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages