Skip to content

gkamboj/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

Collection of LeetCode questions

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0015-3sum
0036-valid-sudoku
0041-first-missing-positive
0042-trapping-rain-water
0049-group-anagrams
0053-maximum-subarray
0074-search-a-2d-matrix
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0217-contains-duplicate
0238-product-of-array-except-self
0287-find-the-duplicate-number
0347-top-k-frequent-elements
0739-daily-temperatures
0792-binary-search
0883-car-fleet
0907-koko-eating-bananas

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0036-valid-sudoku
0041-first-missing-positive
0049-group-anagrams
0128-longest-consecutive-sequence
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0567-permutation-in-string
1023-time-based-key-value-store

Sorting

0015-3sum
0049-group-anagrams
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0883-car-fleet

String

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0020-valid-parentheses
0022-generate-parentheses
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0424-longest-repeating-character-replacement
0567-permutation-in-string
1023-time-based-key-value-store

Prefix Sum

0238-product-of-array-except-self

Union Find

0128-longest-consecutive-sequence

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0138-copy-list-with-random-pointer
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list

Two Pointers

0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0042-trapping-rain-water
0125-valid-palindrome
0141-linked-list-cycle
0143-reorder-list
0167-two-sum-ii-input-array-is-sorted
0287-find-the-duplicate-number
0567-permutation-in-string

Stack

0020-valid-parentheses
0042-trapping-rain-water
0143-reorder-list
0155-min-stack
0739-daily-temperatures
0883-car-fleet

Recursion

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

Divide and Conquer

0004-median-of-two-sorted-arrays
0053-maximum-subarray
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

Matrix

0036-valid-sudoku
0074-search-a-2d-matrix

Binary Search

0004-median-of-two-sorted-arrays
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0287-find-the-duplicate-number
0792-binary-search
0907-koko-eating-bananas
1023-time-based-key-value-store

Greedy

0011-container-with-most-water

Dynamic Programming

0022-generate-parentheses
0042-trapping-rain-water
0053-maximum-subarray
0121-best-time-to-buy-and-sell-stock

Monotonic Stack

0042-trapping-rain-water
0739-daily-temperatures
0883-car-fleet

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement
0567-permutation-in-string

Design

0155-min-stack
1023-time-based-key-value-store

Backtracking

0022-generate-parentheses

Math

0002-add-two-numbers

Bit Manipulation

0287-find-the-duplicate-number

About

Collection of LeetCode questions to ace the coding interview!

Topics

Resources

Stars

Watchers

Forks