Skip to content

Tamim-saad/LeetCode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0049-group-anagrams
0072-edit-distance
0079-word-search
0242-valid-anagram
0345-reverse-vowels-of-a-string
0392-is-subsequence
0583-delete-operation-for-two-strings
1250-longest-common-subsequence
1894-merge-strings-alternately

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0042-trapping-rain-water
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0064-minimum-path-sum
0070-climbing-stairs
0072-edit-distance
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0152-maximum-product-subarray
0198-house-robber
0338-counting-bits
0392-is-subsequence
0435-non-overlapping-intervals
0583-delete-operation-for-two-strings
1236-n-th-tribonacci-number
1250-longest-common-subsequence

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0039-combination-sum
0046-permutations
0079-word-search

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0017-letter-combinations-of-a-phone-number
0036-valid-sudoku
0041-first-missing-positive
0049-group-anagrams
0073-set-matrix-zeroes
0141-linked-list-cycle
0146-lru-cache
0169-majority-element
0202-happy-number
0242-valid-anagram
0380-insert-delete-getrandom-o1
0460-lfu-cache
1392-find-the-difference-of-two-arrays
1798-max-number-of-k-sum-pairs

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0036-valid-sudoku
0039-combination-sum
0041-first-missing-positive
0042-trapping-rain-water
0045-jump-game-ii
0046-permutations
0049-group-anagrams
0053-maximum-subarray
0055-jump-game
0064-minimum-path-sum
0066-plus-one
0073-set-matrix-zeroes
0075-sort-colors
0079-word-search
0080-remove-duplicates-from-sorted-array-ii
0084-largest-rectangle-in-histogram
0088-merge-sorted-array
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0136-single-number
0150-evaluate-reverse-polish-notation
0152-maximum-product-subarray
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0198-house-robber
0215-kth-largest-element-in-an-array
0238-product-of-array-except-self
0239-sliding-window-maximum
0274-h-index
0283-move-zeroes
0380-insert-delete-getrandom-o1
0435-non-overlapping-intervals
0605-can-place-flowers
0724-find-pivot-index
0739-daily-temperatures
0948-sort-an-array
1392-find-the-difference-of-two-arrays
1798-max-number-of-k-sum-pairs
1833-find-the-highest-altitude

Stack

0020-valid-parentheses
0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0150-evaluate-reverse-polish-notation
0155-min-stack
0739-daily-temperatures

Monotonic Stack

0042-trapping-rain-water
0084-largest-rectangle-in-histogram
0739-daily-temperatures

Divide and Conquer

0053-maximum-subarray
0169-majority-element
0215-kth-largest-element-in-an-array
0948-sort-an-array

Sorting

0015-3sum
0049-group-anagrams
0075-sort-colors
0088-merge-sorted-array
0169-majority-element
0215-kth-largest-element-in-an-array
0242-valid-anagram
0274-h-index
0435-non-overlapping-intervals
0948-sort-an-array
1798-max-number-of-k-sum-pairs

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0948-sort-an-array

Quickselect

0215-kth-largest-element-in-an-array

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0042-trapping-rain-water
0075-sort-colors
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0141-linked-list-cycle
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0283-move-zeroes
0345-reverse-vowels-of-a-string
0392-is-subsequence
1798-max-number-of-k-sum-pairs
1894-merge-strings-alternately

Matrix

0036-valid-sudoku
0064-minimum-path-sum
0073-set-matrix-zeroes
0079-word-search

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0435-non-overlapping-intervals
0605-can-place-flowers

Bit Manipulation

0136-single-number
0338-counting-bits
1441-minimum-flips-to-make-a-or-b-equal-to-c

Queue

0239-sliding-window-maximum

Sliding Window

0003-longest-substring-without-repeating-characters
0239-sliding-window-maximum

Monotonic Queue

0239-sliding-window-maximum

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0141-linked-list-cycle
0146-lru-cache
0206-reverse-linked-list
0460-lfu-cache

Design

0146-lru-cache
0155-min-stack
0380-insert-delete-getrandom-o1
0460-lfu-cache

Doubly-Linked List

0146-lru-cache
0460-lfu-cache

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0169-majority-element
0274-h-index
0948-sort-an-array

Prefix Sum

0238-product-of-array-except-self
0724-find-pivot-index
1833-find-the-highest-altitude

Math

0002-add-two-numbers
0066-plus-one
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0189-rotate-array
0202-happy-number
0380-insert-delete-getrandom-o1
1236-n-th-tribonacci-number

Recursion

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

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0104-maximum-depth-of-binary-tree
0230-kth-smallest-element-in-a-bst
0543-diameter-of-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0104-maximum-depth-of-binary-tree
0230-kth-smallest-element-in-a-bst
0543-diameter-of-binary-tree

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0104-maximum-depth-of-binary-tree
0230-kth-smallest-element-in-a-bst
0543-diameter-of-binary-tree

Memoization

0070-climbing-stairs
1236-n-th-tribonacci-number

Binary Search Tree

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0167-two-sum-ii-input-array-is-sorted
0230-kth-smallest-element-in-a-bst

Randomized

0380-insert-delete-getrandom-o1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published