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
0013-roman-to-integer
0014-longest-common-prefix
0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0049-group-anagrams
0058-length-of-last-word
0067-add-binary
0072-edit-distance
0079-word-search
0151-reverse-words-in-a-string
0168-excel-sheet-column-title
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0344-reverse-string
0345-reverse-vowels-of-a-string
0383-ransom-note
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
0416-partition-equal-subset-sum
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
0078-subsets
0079-word-search

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
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
0205-isomorphic-strings
0219-contains-duplicate-ii
0242-valid-anagram
0290-word-pattern
0380-insert-delete-getrandom-o1
0383-ransom-note
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
0031-next-permutation
0033-search-in-rotated-sorted-array
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
0056-merge-intervals
0064-minimum-path-sum
0066-plus-one
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0075-sort-colors
0078-subsets
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
0137-single-number-ii
0150-evaluate-reverse-polish-notation
0152-maximum-product-subarray
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0198-house-robber
0209-minimum-size-subarray-sum
0215-kth-largest-element-in-an-array
0219-contains-duplicate-ii
0238-product-of-array-except-self
0239-sliding-window-maximum
0274-h-index
0283-move-zeroes
0287-find-the-duplicate-number
0380-insert-delete-getrandom-o1
0416-partition-equal-subset-sum
0435-non-overlapping-intervals
0605-can-place-flowers
0724-find-pivot-index
0739-daily-temperatures
0890-lemonade-change
0898-transpose-matrix
0948-sort-an-array
1392-find-the-difference-of-two-arrays
1798-max-number-of-k-sum-pairs
1833-find-the-highest-altitude
2058-concatenation-of-array

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
0190-reverse-bits
0215-kth-largest-element-in-an-array
0948-sort-an-array

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
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
0031-next-permutation
0042-trapping-rain-water
0075-sort-colors
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0141-linked-list-cycle
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0283-move-zeroes
0287-find-the-duplicate-number
0344-reverse-string
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
0074-search-a-2d-matrix
0079-word-search
0898-transpose-matrix

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
0890-lemonade-change

Bit Manipulation

0067-add-binary
0078-subsets
0136-single-number
0137-single-number-ii
0190-reverse-bits
0201-bitwise-and-of-numbers-range
0287-find-the-duplicate-number
0338-counting-bits
1441-minimum-flips-to-make-a-or-b-equal-to-c
3394-minimum-array-end

Queue

0239-sliding-window-maximum

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
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
0383-ransom-note
0948-sort-an-array

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0724-find-pivot-index
1833-find-the-highest-altitude

Math

0002-add-two-numbers
0009-palindrome-number
0013-roman-to-integer
0050-powx-n
0066-plus-one
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
0168-excel-sheet-column-title
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
0050-powx-n
0206-reverse-linked-list

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
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
0098-validate-binary-search-tree
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
0098-validate-binary-search-tree
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

0033-search-in-rotated-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0098-validate-binary-search-tree
0153-find-minimum-in-rotated-sorted-array
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum
0230-kth-smallest-element-in-a-bst
0287-find-the-duplicate-number

Randomized

0380-insert-delete-getrandom-o1

Trie

0014-longest-common-prefix

Simulation

0067-add-binary
0898-transpose-matrix
2058-concatenation-of-array

Database

0197-rising-temperature
0570-managers-with-at-least-5-direct-reports
0577-employee-bonus
0584-find-customer-referee
0595-big-countries
0620-not-boring-movies
1153-product-sales-analysis-i
1161-project-employees-i
1258-article-views-i
1317-monthly-transactions-i
1415-students-and-examinations
1509-replace-employee-id-with-the-unique-identifier
1724-customer-who-visited-but-did-not-make-any-transactions
1773-percentage-of-users-attended-a-contest
1801-average-time-of-process-per-machine
1908-recyclable-and-low-fat-products
2087-confirmation-rate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages