Skip to content

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub)

Notifications You must be signed in to change notification settings

prabusubra/LeetCodeQuestions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0div-idbig-omega-company-tagsdiv-idbig-omega-topbardiv-classcompanytagscontainer-styleoverflow-x-scroll-flex-wrap-nowrap-div-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divmicrosoft-divdiv-classcompanytagscontainer-tagoccurence8-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divamazon-divdiv-classcompanytagscontainer-tagoccurence8-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divvmware-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divadobe-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divsalesforce-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divnvidia-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divgrab-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divuber-divdiv-classcompanytagscontainer-tagoccurence2-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divfacebook-divdiv-classcompanytagscontainer-tagoccurence2-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divintel-divdiv-classcompanytagscontainer-tagoccurence2-div-div-divdiv-classcompanytagscontainer-chevrondivsvg-version11-idicon-xmlnshttp-wwww3org-2000-svg-xmlns-xlinkhttp-wwww3org-1999-xlink-x0px-y0px-viewbox0-0-32-32-fill4087f1-xml-spacepreserve-stylewidth-20px-polygon-points16-22-6-12-74-106-16-192-246-106-26-12-polygonrect-id-x3c-transparent-rectangle-x3e-classst0-fillnone-width32-height32-rect-svg-div-div-div-div75-sort-colors
0div-idbig-omega-company-tagsdiv-idbig-omega-topbardiv-classcompanytagscontainer-styleoverflow-x-scroll-flex-wrap-nowrap-div-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divmicrosoft-divdiv-classcompanytagscontainer-tagoccurence8-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divamazon-divdiv-classcompanytagscontainer-tagoccurence8-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divvmware-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divadobe-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divsalesforce-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divnvidia-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divgrab-divdiv-classcompanytagscontainer-tagoccurence3-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divuber-divdiv-classcompanytagscontainer-tagoccurence2-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divfacebook-divdiv-classcompanytagscontainer-tagoccurence2-div-divdiv-classcompanytagscontainer-tag-stylebackground-color-rgba0-10-32-005-divintel-divdiv-classcompanytagscontainer-tagoccurence2-div-div-divdiv-classcompanytagscontainer-chevrondivsvg-version11-idicon-xmlnshttp-wwww3org-2000-svg-xmlns-xlinkhttp-wwww3org-1999-xlink-x0px-y0px-viewbox0-0-32-32-fill4087f1-xml-spacepreserve-stylewidth-20px-polygon-points16-22-6-12-74-106-16-192-246-106-26-12-polygonrect-id-x3c-transparent-rectangle-x3e-classst0-fillnone-width32-height32-rect-svg-div-div-div-div75-sort-colors
 
 
 
 
 
 

Repository files navigation

LeetCodeQuestions

Collection of LeetCode questions to ace the coding interview! - Created using LeetHub

LeetCode Topics

Array

0011-container-with-most-water
0039-combination-sum
0041-first-missing-positive
0042-trapping-rain-water
0045-jump-game-ii
0046-permutations
0049-group-anagrams
0053-maximum-subarray
0054-spiral-matrix
0078-subsets
0088-merge-sorted-array
0128-longest-consecutive-sequence
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0268-missing-number
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0303-range-sum-query-immutable
0416-partition-equal-subset-sum
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0496-next-greater-element-i
0523-continuous-subarray-sum
0525-contiguous-array
0560-subarray-sum-equals-k
0645-set-mismatch
0674-longest-continuous-increasing-subsequence
0689-maximum-sum-of-3-non-overlapping-subarrays
0735-asteroid-collision
0739-daily-temperatures
0792-binary-search
0948-sort-an-array
1016-subarray-sums-divisible-by-k
1025-minimum-cost-for-tickets
1046-max-consecutive-ones-iii
1635-number-of-good-pairs
1675-magnetic-force-between-two-balls
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1886-minimum-limit-of-balls-in-a-bag
1917-maximum-average-pass-ratio
2164-two-best-non-overlapping-events
2350-find-closest-number-to-zero
2358-number-of-ways-to-split-array
2465-shifting-letters-ii
2691-count-vowel-strings-in-ranges
2868-continuous-subarrays
3181-find-building-where-alice-and-bob-can-meet
3427-special-array-ii
3555-final-array-state-after-k-multiplication-operations-i

Binary Search

0153-find-minimum-in-rotated-sorted-array
0268-missing-number
0287-find-the-duplicate-number
0300-longest-increasing-subsequence
0792-binary-search
1046-max-consecutive-ones-iii
1675-magnetic-force-between-two-balls
1886-minimum-limit-of-balls-in-a-bag
2164-two-best-non-overlapping-events
3181-find-building-where-alice-and-bob-can-meet
3427-special-array-ii

Dynamic Programming

0005-longest-palindromic-substring
0032-longest-valid-parentheses
0042-trapping-rain-water
0045-jump-game-ii
0053-maximum-subarray
0091-decode-ways
0300-longest-increasing-subsequence
0392-is-subsequence
0416-partition-equal-subset-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
1025-minimum-cost-for-tickets
1632-number-of-good-ways-to-split-a-string
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
2164-two-best-non-overlapping-events
2562-count-ways-to-build-good-strings

Sorting

0049-group-anagrams
0088-merge-sorted-array
0268-missing-number
0645-set-mismatch
0948-sort-an-array
1675-magnetic-force-between-two-balls
2164-two-best-non-overlapping-events

Heap (Priority Queue)

0948-sort-an-array
1917-maximum-average-pass-ratio
2164-two-best-non-overlapping-events
2868-continuous-subarrays
3181-find-building-where-alice-and-bob-can-meet
3555-final-array-state-after-k-multiplication-operations-i

Prefix Sum

0303-range-sum-query-immutable
0523-continuous-subarray-sum
0525-contiguous-array
0560-subarray-sum-equals-k
1016-subarray-sums-divisible-by-k
1046-max-consecutive-ones-iii
1537-maximum-score-after-splitting-a-string
2059-unique-length-3-palindromic-subsequences
2358-number-of-ways-to-split-array
2465-shifting-letters-ii
2691-count-vowel-strings-in-ranges
3427-special-array-ii

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0042-trapping-rain-water
0061-rotate-list
0088-merge-sorted-array
0142-linked-list-cycle-ii
0160-intersection-of-two-linked-lists
0202-happy-number
0234-palindrome-linked-list
0287-find-the-duplicate-number
0392-is-subsequence
0908-middle-of-the-linked-list

Backtracking

0039-combination-sum
0046-permutations
0077-combinations
0078-subsets
0813-all-paths-from-source-to-target

Depth-First Search

0100-same-tree
0101-symmetric-tree
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0199-binary-tree-right-side-view
0437-path-sum-iii
0515-find-largest-value-in-each-tree-row
0813-all-paths-from-source-to-target
2493-reverse-odd-levels-of-binary-tree
3058-maximum-number-of-k-divisible-components
3439-find-minimum-diameter-after-merging-two-trees

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0199-binary-tree-right-side-view
0515-find-largest-value-in-each-tree-row
0813-all-paths-from-source-to-target
2493-reverse-odd-levels-of-binary-tree
3439-find-minimum-diameter-after-merging-two-trees

Graph

0813-all-paths-from-source-to-target
3439-find-minimum-diameter-after-merging-two-trees

Bit Manipulation

0078-subsets
0268-missing-number
0287-find-the-duplicate-number
0645-set-mismatch
1632-number-of-good-ways-to-split-a-string
2059-unique-length-3-palindromic-subsequences

Queue

2868-continuous-subarrays

Sliding Window

0003-longest-substring-without-repeating-characters
1046-max-consecutive-ones-iii
2868-continuous-subarrays

Ordered Set

2868-continuous-subarrays

Monotonic Queue

2868-continuous-subarrays

Greedy

0011-container-with-most-water
0045-jump-game-ii
0316-remove-duplicate-letters
1159-smallest-subsequence-of-distinct-characters
1917-maximum-average-pass-ratio

Math

0002-add-two-numbers
0150-evaluate-reverse-polish-notation
0202-happy-number
0268-missing-number
0523-continuous-subarray-sum
1635-number-of-good-pairs
3555-final-array-state-after-k-multiplication-operations-i

Simulation

0054-spiral-matrix
0735-asteroid-collision
2470-removing-stars-from-a-string
3555-final-array-state-after-k-multiplication-operations-i

Tree

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0199-binary-tree-right-side-view
0437-path-sum-iii
0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
3058-maximum-number-of-k-divisible-components
3439-find-minimum-diameter-after-merging-two-trees

Binary Tree

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0199-binary-tree-right-side-view
0437-path-sum-iii
0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree

Stack

0020-valid-parentheses
0032-longest-valid-parentheses
0042-trapping-rain-water
0144-binary-tree-preorder-traversal
0150-evaluate-reverse-polish-notation
0234-palindrome-linked-list
0316-remove-duplicate-letters
0496-next-greater-element-i
0735-asteroid-collision
0739-daily-temperatures
1128-remove-all-adjacent-duplicates-in-string
1159-smallest-subsequence-of-distinct-characters
2470-removing-stars-from-a-string
3181-find-building-where-alice-and-bob-can-meet

Binary Indexed Tree

3181-find-building-where-alice-and-bob-can-meet

Segment Tree

3181-find-building-where-alice-and-bob-can-meet

Monotonic Stack

0042-trapping-rain-water
0316-remove-duplicate-letters
0496-next-greater-element-i
0739-daily-temperatures
1159-smallest-subsequence-of-distinct-characters
3181-find-building-where-alice-and-bob-can-meet

Hash Table

0003-longest-substring-without-repeating-characters
0041-first-missing-positive
0049-group-anagrams
0128-longest-consecutive-sequence
0142-linked-list-cycle-ii
0146-lru-cache
0160-intersection-of-two-linked-lists
0202-happy-number
0205-isomorphic-strings
0268-missing-number
0442-find-all-duplicates-in-an-array
0448-find-all-numbers-disappeared-in-an-array
0496-next-greater-element-i
0523-continuous-subarray-sum
0525-contiguous-array
0560-subarray-sum-equals-k
0645-set-mismatch
1016-subarray-sums-divisible-by-k
1297-maximum-number-of-balloons
1632-number-of-good-ways-to-split-a-string
1635-number-of-good-pairs
2059-unique-length-3-palindromic-subsequences

Divide and Conquer

0053-maximum-subarray
0948-sort-an-array

Merge Sort

0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array
1297-maximum-number-of-balloons
1635-number-of-good-pairs

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0020-valid-parentheses
0032-longest-valid-parentheses
0049-group-anagrams
0091-decode-ways
0205-isomorphic-strings
0316-remove-duplicate-letters
0392-is-subsequence
1128-remove-all-adjacent-duplicates-in-string
1159-smallest-subsequence-of-distinct-characters
1297-maximum-number-of-balloons
1537-maximum-score-after-splitting-a-string
1632-number-of-good-ways-to-split-a-string
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
2059-unique-length-3-palindromic-subsequences
2465-shifting-letters-ii
2470-removing-stars-from-a-string
2691-count-vowel-strings-in-ranges

Union Find

0128-longest-consecutive-sequence

Design

0146-lru-cache
0303-range-sum-query-immutable

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0061-rotate-list
0092-reverse-linked-list-ii
0142-linked-list-cycle-ii
0146-lru-cache
0160-intersection-of-two-linked-lists
0206-reverse-linked-list
0234-palindrome-linked-list
0908-middle-of-the-linked-list

Recursion

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

Matrix

0054-spiral-matrix

Doubly-Linked List

0146-lru-cache

About

Collection of LeetCode questions to ace the coding interview! - Created using [LeetHub](https://github.com/QasimWani/LeetHub)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published