Skip to content

Latest commit

 

History

255 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA

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

LeetCode Topics

Array

0001-two-sum
0014-longest-common-prefix
0015-3sum
0031-next-permutation
0034-find-first-and-last-position-of-element-in-sorted-array
0042-trapping-rain-water
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0054-spiral-matrix
0056-merge-intervals
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0075-sort-colors
0088-merge-sorted-array
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0152-maximum-product-subarray
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0169-majority-element
0287-find-the-duplicate-number
0410-split-array-largest-sum
0493-reverse-pairs
0744-find-smallest-letter-greater-than-target
0852-peak-index-in-a-mountain-array
0875-koko-eating-bananas
1011-capacity-to-ship-packages-within-d-days
1283-find-the-smallest-divisor-given-a-threshold
1482-minimum-number-of-days-to-make-m-bouquets
1539-kth-missing-positive-number
2149-rearrange-array-elements-by-sign
2643-row-with-maximum-ones

Hash Table

0001-two-sum
0013-roman-to-integer
0049-group-anagrams
0073-set-matrix-zeroes
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0146-lru-cache
0160-intersection-of-two-linked-lists
0169-majority-element
0202-happy-number

Two Pointers

0005-longest-palindromic-substring
0015-3sum
0019-remove-nth-node-from-end-of-list
0031-next-permutation
0042-trapping-rain-water
0061-rotate-list
0075-sort-colors
0088-merge-sorted-array
0141-linked-list-cycle
0142-linked-list-cycle-ii
0143-reorder-list
0151-reverse-words-in-a-string
0160-intersection-of-two-linked-lists
0202-happy-number
0234-palindrome-linked-list
0287-find-the-duplicate-number
0876-middle-of-the-linked-list
2149-rearrange-array-elements-by-sign

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0075-sort-colors
0088-merge-sorted-array
0169-majority-element

Divide and Conquer

0053-maximum-subarray
0169-majority-element
0493-reverse-pairs

Counting

0169-majority-element

Dynamic Programming

0005-longest-palindromic-substring
0042-trapping-rain-water
0053-maximum-subarray
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0152-maximum-product-subarray
0410-split-array-largest-sum

Greedy

0122-best-time-to-buy-and-sell-stock-ii
0410-split-array-largest-sum

Simulation

0054-spiral-matrix
2149-rearrange-array-elements-by-sign

Matrix

0048-rotate-image
0054-spiral-matrix
0073-set-matrix-zeroes
0074-search-a-2d-matrix
2643-row-with-maximum-ones

Math

0002-add-two-numbers
0013-roman-to-integer
0048-rotate-image
0069-sqrtx
0202-happy-number
0441-arranging-coins

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0069-sqrtx
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0287-find-the-duplicate-number
0374-guess-number-higher-or-lower
0410-split-array-largest-sum
0441-arranging-coins
0493-reverse-pairs
0744-find-smallest-letter-greater-than-target
0852-peak-index-in-a-mountain-array
0875-koko-eating-bananas
1011-capacity-to-ship-packages-within-d-days
1283-find-the-smallest-divisor-given-a-threshold
1482-minimum-number-of-days-to-make-m-bouquets
1539-kth-missing-positive-number

Binary Indexed Tree

0493-reverse-pairs

Segment Tree

0493-reverse-pairs

Merge Sort

0493-reverse-pairs

Ordered Set

0493-reverse-pairs

String

0005-longest-palindromic-substring
0013-roman-to-integer
0014-longest-common-prefix
0049-group-anagrams
0151-reverse-words-in-a-string

Prefix Sum

0410-split-array-largest-sum

Trie

0014-longest-common-prefix

Interactive

0374-guess-number-higher-or-lower

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0061-rotate-list
0083-remove-duplicates-from-sorted-list
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0142-linked-list-cycle-ii
0143-reorder-list
0146-lru-cache
0160-intersection-of-two-linked-lists
0234-palindrome-linked-list
0237-delete-node-in-a-linked-list
0876-middle-of-the-linked-list

Floyd's Cycle Finding Algorithm

0141-linked-list-cycle
0142-linked-list-cycle-ii
0202-happy-number
0287-find-the-duplicate-number

Stack

0042-trapping-rain-water
0143-reorder-list
0234-palindrome-linked-list

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0025-reverse-nodes-in-k-group
0143-reorder-list
0234-palindrome-linked-list

Bit Manipulation

0287-find-the-duplicate-number

Pigeonhole Principle

0287-find-the-duplicate-number

Monotonic Stack

0042-trapping-rain-water

Design

0146-lru-cache

Doubly-Linked List

0146-lru-cache

Manacher

0005-longest-palindromic-substring

About

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

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages