Skip to content

Latest commit

 

History

124 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of LeetCode questions to ace the coding interviews! - Created using LeetHub 2.0 for Firefox

LeetCode Topics

Array

0001-two-sum
0015-3sum
0018-4sum
0035-search-insert-position
0036-valid-sudoku
0045-jump-game-ii
0048-rotate-image
0053-maximum-subarray
0055-jump-game
0056-merge-intervals
0057-insert-interval
0073-set-matrix-zeroes
0084-largest-rectangle-in-histogram
0134-gas-station
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0274-h-index
0334-increasing-triplet-subsequence
0373-find-k-pairs-with-smallest-sums
0380-insert-delete-getrandom-o1
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0621-task-scheduler
0816-design-hashset
0817-design-hashmap
0860-design-circular-queue
0898-transpose-matrix
0907-koko-eating-bananas
1014-k-closest-points-to-origin
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1127-last-stone-weight
1184-car-pooling
1586-longest-subarray-of-1s-after-deleting-one-element
1798-max-number-of-k-sum-pairs
1962-single-threaded-cpu

Binary Search

0035-search-insert-position
0069-sqrtx
0222-count-complete-tree-nodes
0907-koko-eating-bananas
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0036-valid-sudoku
0073-set-matrix-zeroes
0138-copy-list-with-random-pointer
0146-lru-cache
0208-implement-trie-prefix-tree
0229-majority-element-ii
0355-design-twitter
0380-insert-delete-getrandom-o1
0621-task-scheduler
0768-partition-labels
0778-reorganize-string
0816-design-hashset
0817-design-hashmap
0931-maximum-frequency-stack
1798-max-number-of-k-sum-pairs

Sorting

0015-3sum
0018-4sum
0056-merge-intervals
0215-kth-largest-element-in-an-array
0229-majority-element-ii
0274-h-index
0295-find-median-from-data-stream
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0621-task-scheduler
0778-reorganize-string
1014-k-closest-points-to-origin
1184-car-pooling
1798-max-number-of-k-sum-pairs
1962-single-threaded-cpu

Counting

0229-majority-element-ii
0621-task-scheduler
0778-reorganize-string

Matrix

0036-valid-sudoku
0048-rotate-image
0073-set-matrix-zeroes
0898-transpose-matrix

Linked List

0002-add-two-numbers
0061-rotate-list
0082-remove-duplicates-from-sorted-list-ii
0083-remove-duplicates-from-sorted-list
0086-partition-list
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0146-lru-cache
0328-odd-even-linked-list
0355-design-twitter
0816-design-hashset
0817-design-hashmap
0860-design-circular-queue
2236-maximum-twin-sum-of-a-linked-list

Design

0146-lru-cache
0208-implement-trie-prefix-tree
0295-find-median-from-data-stream
0355-design-twitter
0380-insert-delete-getrandom-o1
0789-kth-largest-element-in-a-stream
0816-design-hashset
0817-design-hashmap
0860-design-circular-queue
0931-maximum-frequency-stack
0969-number-of-recent-calls

Hash Function

0572-subtree-of-another-tree
0816-design-hashset
0817-design-hashmap

Stack

0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0224-basic-calculator
0931-maximum-frequency-stack
2236-maximum-twin-sum-of-a-linked-list
2470-removing-stars-from-a-string

Ordered Set

0931-maximum-frequency-stack

Queue

0649-dota2-senate
0860-design-circular-queue
0969-number-of-recent-calls

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0048-rotate-image
0067-add-binary
0069-sqrtx
0224-basic-calculator
0371-sum-of-two-integers
0380-insert-delete-getrandom-o1
1014-k-closest-points-to-origin

Recursion

0002-add-two-numbers
0224-basic-calculator

Monotonic Stack

0084-largest-rectangle-in-histogram

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0572-subtree-of-another-tree
0789-kth-largest-element-in-a-stream
1116-maximum-level-sum-of-a-binary-tree
1450-delete-leaves-with-a-given-value
1544-count-good-nodes-in-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0572-subtree-of-another-tree
1116-maximum-level-sum-of-a-binary-tree
1450-delete-leaves-with-a-given-value
1544-count-good-nodes-in-binary-tree

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0199-binary-tree-right-side-view
0226-invert-binary-tree
1116-maximum-level-sum-of-a-binary-tree
1544-count-good-nodes-in-binary-tree

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0110-balanced-binary-tree
0199-binary-tree-right-side-view
0222-count-complete-tree-nodes
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0572-subtree-of-another-tree
0789-kth-largest-element-in-a-stream
1116-maximum-level-sum-of-a-binary-tree
1450-delete-leaves-with-a-given-value
1544-count-good-nodes-in-binary-tree

Doubly-Linked List

0146-lru-cache

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0789-kth-largest-element-in-a-stream

String Matching

0003-longest-substring-without-repeating-characters
0006-zigzag-conversion
0012-integer-to-roman
0067-add-binary
0151-reverse-words-in-a-string
0208-implement-trie-prefix-tree
0224-basic-calculator
0443-string-compression
0572-subtree-of-another-tree
0649-dota2-senate
0768-partition-labels
0778-reorganize-string
1304-longest-happy-string
1567-maximum-number-of-vowels-in-a-substring-of-given-length
2470-removing-stars-from-a-string

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0295-find-median-from-data-stream
0355-design-twitter
0373-find-k-pairs-with-smallest-sums
0621-task-scheduler
0778-reorganize-string
0789-kth-largest-element-in-a-stream
1014-k-closest-points-to-origin
1127-last-stone-weight
1184-car-pooling
1304-longest-happy-string
1962-single-threaded-cpu

Data Stream

0295-find-median-from-data-stream
0789-kth-largest-element-in-a-stream
0969-number-of-recent-calls

Sliding Window

0003-longest-substring-without-repeating-characters
1046-max-consecutive-ones-iii
1567-maximum-number-of-vowels-in-a-substring-of-given-length
1586-longest-subarray-of-1s-after-deleting-one-element

Divide and Conquer

0053-maximum-subarray
0215-kth-largest-element-in-an-array
1014-k-closest-points-to-origin

Quickselect

0215-kth-largest-element-in-an-array
1014-k-closest-points-to-origin

Greedy

0045-jump-game-ii
0055-jump-game
0134-gas-station
0334-increasing-triplet-subsequence
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0621-task-scheduler
0649-dota2-senate
0768-partition-labels
0778-reorganize-string
1304-longest-happy-string

Two Pointers

0015-3sum
0018-4sum
0061-rotate-list
0082-remove-duplicates-from-sorted-list-ii
0086-partition-list
0151-reverse-words-in-a-string
0295-find-median-from-data-stream
0443-string-compression
0768-partition-labels
1798-max-number-of-k-sum-pairs
2236-maximum-twin-sum-of-a-linked-list

Bit Manipulation

0067-add-binary
0201-bitwise-and-of-numbers-range
0222-count-complete-tree-nodes
0371-sum-of-two-integers
3394-minimum-array-end

Simulation

0067-add-binary
0898-transpose-matrix
1184-car-pooling
2470-removing-stars-from-a-string

Dynamic Programming

0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0435-non-overlapping-intervals
1586-longest-subarray-of-1s-after-deleting-one-element

Geometry

1014-k-closest-points-to-origin

K-D Tree

1014-k-closest-points-to-origin

Prefix Sum

1046-max-consecutive-ones-iii
1184-car-pooling

Longest Increasing Subsequence

0334-increasing-triplet-subsequence

Quicksort

0056-merge-intervals

Trie

0208-implement-trie-prefix-tree

Randomized

0380-insert-delete-getrandom-o1

Counting Sort

0274-h-index

About

Collection of my Solved LeetCode Questions!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages