Skip to content

Tarunasuthar/Data-Structure-Leetcode

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

Array

0015-3sum
0031-next-permutation
0049-group-anagrams
0053-maximum-subarray
0054-spiral-matrix
0059-spiral-matrix-ii
0073-set-matrix-zeroes
0090-subsets-ii
0121-best-time-to-buy-and-sell-stock
0130-surrounded-regions
0134-gas-station
0152-maximum-product-subarray
0162-find-peak-element
0200-number-of-islands
0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
0300-longest-increasing-subsequence
0322-coin-change
0334-increasing-triplet-subsequence
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0453-minimum-moves-to-equal-array-elements
0455-assign-cookies
0462-minimum-moves-to-equal-array-elements-ii
0517-super-washing-machines
0518-coin-change-ii
0523-continuous-subarray-sum
0560-subarray-sum-equals-k
0594-longest-harmonious-subsequence
0878-shifting-letters
1062-partition-array-into-three-parts-with-equal-sum
1073-number-of-enclaves
1350-remove-sub-folders-from-the-filesystem
1510-find-lucky-integer-in-an-array
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
1694-make-sum-divisible-by-p
1813-maximum-erasure-value
1995-finding-pairs-with-a-certain-sum
2170-count-number-of-maximum-bitwise-or-subsets
2204-find-subsequence-of-length-k-with-the-largest-sum
2320-find-all-k-distant-indices-in-an-array
2358-number-of-ways-to-split-array
2387-partition-array-such-that-maximum-difference-is-k
2699-count-the-number-of-fair-pairs
3000-minimum-absolute-difference-between-elements-with-constraint
3170-find-indices-with-index-and-value-difference-ii
3231-minimum-number-of-coins-to-be-added

Two Pointers

0015-3sum
0031-next-permutation
0455-assign-cookies
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
2320-find-all-k-distant-indices-in-an-array
2699-count-the-number-of-fair-pairs
3170-find-indices-with-index-and-value-difference-ii

Sorting

0015-3sum
0049-group-anagrams
0215-kth-largest-element-in-an-array
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0462-minimum-moves-to-equal-array-elements-ii
0594-longest-harmonious-subsequence
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
2204-find-subsequence-of-length-k-with-the-largest-sum
2387-partition-array-such-that-maximum-difference-is-k
2699-count-the-number-of-fair-pairs
3231-minimum-number-of-coins-to-be-added
3360-minimum-deletions-to-make-string-k-special

Greedy

0134-gas-station
0334-increasing-triplet-subsequence
0435-non-overlapping-intervals
0452-minimum-number-of-arrows-to-burst-balloons
0455-assign-cookies
0517-super-washing-machines
1062-partition-array-into-three-parts-with-equal-sum
1818-maximum-score-from-removing-substrings
2387-partition-array-such-that-maximum-difference-is-k
2395-longest-binary-subsequence-less-than-or-equal-to-k
3231-minimum-number-of-coins-to-be-added
3360-minimum-deletions-to-make-string-k-special

Hash Table

0003-longest-substring-without-repeating-characters
0049-group-anagrams
0073-set-matrix-zeroes
0523-continuous-subarray-sum
0560-subarray-sum-equals-k
0594-longest-harmonious-subsequence
1510-find-lucky-integer-in-an-array
1694-make-sum-divisible-by-p
1813-maximum-erasure-value
1995-finding-pairs-with-a-certain-sum
2204-find-subsequence-of-length-k-with-the-largest-sum
2605-count-anagrams
3360-minimum-deletions-to-make-string-k-special
3754-maximum-manhattan-distance-after-k-changes

Math

0326-power-of-three
0342-power-of-four
0453-minimum-moves-to-equal-array-elements
0462-minimum-moves-to-equal-array-elements-ii
0523-continuous-subarray-sum
0897-prime-palindrome
1411-convert-binary-number-in-a-linked-list-to-integer
2202-sum-of-k-mirror-numbers
2605-count-anagrams
3600-find-the-k-th-character-in-string-game-i
3601-find-the-k-th-character-in-string-game-ii
3754-maximum-manhattan-distance-after-k-changes

String

0003-longest-substring-without-repeating-characters
0049-group-anagrams
0878-shifting-letters
1350-remove-sub-folders-from-the-filesystem
1818-maximum-score-from-removing-substrings
2260-divide-a-string-into-groups-of-size-k
2395-longest-binary-subsequence-less-than-or-equal-to-k
2605-count-anagrams
3360-minimum-deletions-to-make-string-k-special
3396-valid-word
3617-find-the-original-typed-string-i
3754-maximum-manhattan-distance-after-k-changes

Counting

0594-longest-harmonious-subsequence
1510-find-lucky-integer-in-an-array
2605-count-anagrams
3360-minimum-deletions-to-make-string-k-special
3754-maximum-manhattan-distance-after-k-changes

Queue

0239-sliding-window-maximum

Sliding Window

0003-longest-substring-without-repeating-characters
0239-sliding-window-maximum
0594-longest-harmonious-subsequence
1813-maximum-erasure-value

Heap (Priority Queue)

0215-kth-largest-element-in-an-array
0239-sliding-window-maximum
2204-find-subsequence-of-length-k-with-the-largest-sum

Monotonic Queue

0239-sliding-window-maximum

Combinatorics

2605-count-anagrams

Simulation

0054-spiral-matrix
0059-spiral-matrix-ii
2260-divide-a-string-into-groups-of-size-k
3600-find-the-k-th-character-in-string-game-i

Depth-First Search

0124-binary-tree-maximum-path-sum
0130-surrounded-regions
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
1073-number-of-enclaves
1120-flower-planting-with-no-adjacent
1350-remove-sub-folders-from-the-filesystem

Breadth-First Search

0130-surrounded-regions
0200-number-of-islands
0207-course-schedule
0210-course-schedule-ii
0322-coin-change
1073-number-of-enclaves
1120-flower-planting-with-no-adjacent

Graph

0207-course-schedule
0210-course-schedule-ii
1120-flower-planting-with-no-adjacent

Topological Sort

0207-course-schedule
0210-course-schedule-ii

Enumeration

2170-count-number-of-maximum-bitwise-or-subsets
2202-sum-of-k-mirror-numbers

Number Theory

0897-prime-palindrome

Binary Search

0162-find-peak-element
0300-longest-increasing-subsequence
1621-number-of-subsequences-that-satisfy-the-given-sum-condition
2699-count-the-number-of-fair-pairs
3000-minimum-absolute-difference-between-elements-with-constraint

Ordered Set

3000-minimum-absolute-difference-between-elements-with-constraint

Union Find

0130-surrounded-regions
0200-number-of-islands
1073-number-of-enclaves

Matrix

0054-spiral-matrix
0059-spiral-matrix-ii
0073-set-matrix-zeroes
0130-surrounded-regions
0200-number-of-islands
1073-number-of-enclaves

Dynamic Programming

0053-maximum-subarray
0121-best-time-to-buy-and-sell-stock
0124-binary-tree-maximum-path-sum
0152-maximum-product-subarray
0300-longest-increasing-subsequence
0322-coin-change
0435-non-overlapping-intervals
0518-coin-change-ii
2395-longest-binary-subsequence-less-than-or-equal-to-k
2397-count-number-of-ways-to-place-houses

Memoization

2395-longest-binary-subsequence-less-than-or-equal-to-k

Divide and Conquer

0053-maximum-subarray
0215-kth-largest-element-in-an-array

Quickselect

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

Stack

0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0937-online-stock-span
1818-maximum-score-from-removing-substrings

Design

0937-online-stock-span
1995-finding-pairs-with-a-certain-sum

Monotonic Stack

0937-online-stock-span

Data Stream

0937-online-stock-span

Bit Manipulation

0090-subsets-ii
0342-power-of-four
2170-count-number-of-maximum-bitwise-or-subsets
3600-find-the-k-th-character-in-string-game-i
3601-find-the-k-th-character-in-string-game-ii

Recursion

0206-reverse-linked-list
0326-power-of-three
0342-power-of-four
3600-find-the-k-th-character-in-string-game-i
3601-find-the-k-th-character-in-string-game-ii

Prefix Sum

0523-continuous-subarray-sum
0560-subarray-sum-equals-k
0878-shifting-letters
1694-make-sum-divisible-by-p
2358-number-of-ways-to-split-array

Tree

0124-binary-tree-maximum-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Binary Tree

0124-binary-tree-maximum-path-sum
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal

Linked List

0092-reverse-linked-list-ii
0206-reverse-linked-list
1411-convert-binary-number-in-a-linked-list-to-integer

Trie

1350-remove-sub-folders-from-the-filesystem

Backtracking

0090-subsets-ii
2170-count-number-of-maximum-bitwise-or-subsets

Database

0176-second-highest-salary
0177-nth-highest-salary
0178-rank-scores
0182-duplicate-emails

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages