Skip to content

Keshav1707/Leetcode-submissions

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

Depth-First Search

0332-reconstruct-itinerary
0337-house-robber-iii
0399-evaluate-division
0684-redundant-connection
0803-cheapest-flights-within-k-stops
0922-possible-bipartition
1207-delete-nodes-and-return-forest
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
2206-detonate-the-maximum-bombs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2445-reachable-nodes-with-restrictions
2568-minimum-fuel-cost-to-report-to-the-capital

Breadth-First Search

0399-evaluate-division
0684-redundant-connection
0803-cheapest-flights-within-k-stops
0922-possible-bipartition
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1436-get-watched-videos-by-your-friends
2151-the-time-when-the-network-becomes-idle
2171-second-minimum-time-to-reach-destination
2206-detonate-the-maximum-bombs
2445-reachable-nodes-with-restrictions
2568-minimum-fuel-cost-to-report-to-the-capital
3271-count-the-number-of-houses-at-a-certain-distance-i

Graph

0332-reconstruct-itinerary
0399-evaluate-division
0684-redundant-connection
0803-cheapest-flights-within-k-stops
0922-possible-bipartition
1032-satisfiability-of-equality-equations
1325-path-with-maximum-probability
1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1436-get-watched-videos-by-your-friends
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
1738-maximal-network-rank
1912-number-of-restricted-paths-from-first-to-last-node
2151-the-time-when-the-network-becomes-idle
2171-second-minimum-time-to-reach-destination
2176-parallel-courses-iii
2206-detonate-the-maximum-bombs
2445-reachable-nodes-with-restrictions
2568-minimum-fuel-cost-to-report-to-the-capital
3235-minimum-cost-to-convert-string-i
3271-count-the-number-of-houses-at-a-certain-distance-i

Topological Sort

1431-all-ancestors-of-a-node-in-a-directed-acyclic-graph
1912-number-of-restricted-paths-from-first-to-last-node
2176-parallel-courses-iii

Union Find

0399-evaluate-division
0684-redundant-connection
0922-possible-bipartition
1032-satisfiability-of-equality-equations
1701-remove-max-number-of-edges-to-keep-graph-fully-traversable
2445-reachable-nodes-with-restrictions

Tree

0337-house-robber-iii
1207-delete-nodes-and-return-forest
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions
2445-reachable-nodes-with-restrictions
2568-minimum-fuel-cost-to-report-to-the-capital
3307-find-the-maximum-sum-of-node-values

Array

0033-search-in-rotated-sorted-array
0040-combination-sum-ii
0045-jump-game-ii
0047-permutations-ii
0081-search-in-rotated-sorted-array-ii
0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0174-dungeon-game
0238-product-of-array-except-self
0313-super-ugly-number
0315-count-of-smaller-numbers-after-self
0350-intersection-of-two-arrays-ii
0363-max-sum-of-rectangle-no-larger-than-k
0399-evaluate-division
0410-split-array-largest-sum
0493-reverse-pairs
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0873-guess-the-word
0890-lemonade-change
0906-walking-robot-simulation
0948-sort-an-array
1032-satisfiability-of-equality-equations
1196-filling-bookcase-shelves
1207-delete-nodes-and-return-forest
1293-three-consecutive-odds
1325-path-with-maximum-probability
1435-xor-queries-of-a-subarray
1436-get-watched-videos-by-your-friends
1496-lucky-numbers-in-a-matrix
1511-count-number-of-teams
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1711-find-valid-matrix-given-row-and-column-sums
1720-crawler-log-folder
1741-sort-array-by-increasing-frequency
1803-average-waiting-time
1825-find-minimum-time-to-finish-all-jobs
1881-closest-subsequence-sum
1923-sentence-similarity-iii
1956-maximum-element-after-decreasing-and-rearranging
2094-remove-stones-to-minimize-the-total
2151-the-time-when-the-network-becomes-idle
2176-parallel-courses-iii
2206-detonate-the-maximum-bombs
2255-minimum-swaps-to-group-all-1s-together-ii
2306-create-binary-tree-from-descriptions
2445-reachable-nodes-with-restrictions
2502-sort-the-people
2581-divide-players-into-teams-of-equal-skill
2616-maximal-score-after-applying-k-operations
2727-number-of-senior-citizens
3235-minimum-cost-to-convert-string-i
3307-find-the-maximum-sum-of-node-values
3443-maximum-total-reward-using-operations-ii
3495-k-th-nearest-obstacle-queries

Hash Table

0146-lru-cache
0264-ugly-number-ii
0350-intersection-of-two-arrays-ii
0692-top-k-frequent-words
0726-number-of-atoms
0906-walking-robot-simulation
1207-delete-nodes-and-return-forest
1436-get-watched-videos-by-your-friends
1741-sort-array-by-increasing-frequency
1890-sum-of-beauty-of-all-substrings
2306-create-binary-tree-from-descriptions
2445-reachable-nodes-with-restrictions
2502-sort-the-people
2581-divide-players-into-teams-of-equal-skill
3445-lexicographically-minimum-string-after-removing-stars

Sorting

0350-intersection-of-two-arrays-ii
0692-top-k-frequent-words
0726-number-of-atoms
0948-sort-an-array
1436-get-watched-videos-by-your-friends
1615-range-sum-of-sorted-subarray-sums
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1741-sort-array-by-increasing-frequency
1956-maximum-element-after-decreasing-and-rearranging
2502-sort-the-people
2581-divide-players-into-teams-of-equal-skill
3307-find-the-maximum-sum-of-node-values

Dynamic Programming

0010-regular-expression-matching
0044-wildcard-matching
0045-jump-game-ii
0085-maximal-rectangle
0174-dungeon-game
0264-ugly-number-ii
0313-super-ugly-number
0337-house-robber-iii
0410-split-array-largest-sum
0458-poor-pigs
0552-student-attendance-record-ii
0639-decode-ways-ii
0650-2-keys-keyboard
0678-valid-parenthesis-string
0712-minimum-ascii-delete-sum-for-two-strings
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0803-cheapest-flights-within-k-stops
0977-distinct-subsequences-ii
1196-filling-bookcase-shelves
1403-palindrome-partitioning-iii
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1511-count-number-of-teams
1756-minimum-deletions-to-make-string-balanced
1761-count-sorted-vowel-strings
1825-find-minimum-time-to-finish-all-jobs
1871-palindrome-partitioning-iv
1881-closest-subsequence-sum
1912-number-of-restricted-paths-from-first-to-last-node
2176-parallel-courses-iii
2187-vowels-of-all-substrings
2395-longest-binary-subsequence-less-than-or-equal-to-k
3307-find-the-maximum-sum-of-node-values
3443-maximum-total-reward-using-operations-ii

Greedy

0044-wildcard-matching
0045-jump-game-ii
0410-split-array-largest-sum
0678-valid-parenthesis-string
0714-best-time-to-buy-and-sell-stock-with-transaction-fee
0890-lemonade-change
0957-minimum-add-to-make-parentheses-valid
1616-minimum-difference-between-largest-and-smallest-value-in-three-moves
1711-find-valid-matrix-given-row-and-column-sums
1804-maximum-binary-string-after-change
1818-maximum-score-from-removing-substrings
1956-maximum-element-after-decreasing-and-rearranging
2094-remove-stones-to-minimize-the-total
2395-longest-binary-subsequence-less-than-or-equal-to-k
2616-maximal-score-after-applying-k-operations
3307-find-the-maximum-sum-of-node-values
3445-lexicographically-minimum-string-after-removing-stars

Math

0060-permutation-sequence
0264-ugly-number-ii
0313-super-ugly-number
0458-poor-pigs
0650-2-keys-keyboard
0873-guess-the-word
1642-water-bottles
1761-count-sorted-vowel-strings
2187-vowels-of-all-substrings
2206-detonate-the-maximum-bombs
2645-pass-the-pillow

Geometry

2206-detonate-the-maximum-bombs

String

0010-regular-expression-matching
0038-count-and-say
0044-wildcard-matching
0399-evaluate-division
0639-decode-ways-ii
0678-valid-parenthesis-string
0692-top-k-frequent-words
0712-minimum-ascii-delete-sum-for-two-strings
0726-number-of-atoms
0873-guess-the-word
0957-minimum-add-to-make-parentheses-valid
0977-distinct-subsequences-ii
1032-satisfiability-of-equality-equations
1298-reverse-substrings-between-each-pair-of-parentheses
1403-palindrome-partitioning-iii
1720-crawler-log-folder
1756-minimum-deletions-to-make-string-balanced
1804-maximum-binary-string-after-change
1818-maximum-score-from-removing-substrings
1871-palindrome-partitioning-iv
1890-sum-of-beauty-of-all-substrings
1923-sentence-similarity-iii
2187-vowels-of-all-substrings
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2395-longest-binary-subsequence-less-than-or-equal-to-k
2502-sort-the-people
2727-number-of-senior-citizens
3235-minimum-cost-to-convert-string-i
3445-lexicographically-minimum-string-after-removing-stars

Two Pointers

0350-intersection-of-two-arrays-ii
0908-middle-of-the-linked-list
1615-range-sum-of-sorted-subarray-sums
1881-closest-subsequence-sum
1923-sentence-similarity-iii
2581-divide-players-into-teams-of-equal-skill

Binary Search

0033-search-in-rotated-sorted-array
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0315-count-of-smaller-numbers-after-self
0350-intersection-of-two-arrays-ii
0363-max-sum-of-rectangle-no-larger-than-k
0410-split-array-largest-sum
0493-reverse-pairs
1615-range-sum-of-sorted-subarray-sums

Matrix

0085-maximal-rectangle
0174-dungeon-game
0363-max-sum-of-rectangle-no-larger-than-k
1496-lucky-numbers-in-a-matrix
1711-find-valid-matrix-given-row-and-column-sums

Recursion

0010-regular-expression-matching
0044-wildcard-matching
0060-permutation-sequence
0206-reverse-linked-list

Linked List

0023-merge-k-sorted-lists
0146-lru-cache
0206-reverse-linked-list
0237-delete-node-in-a-linked-list
0725-split-linked-list-in-parts
0908-middle-of-the-linked-list
2299-merge-nodes-in-between-zeros

Simulation

0906-walking-robot-simulation
1642-water-bottles
1803-average-waiting-time
2299-merge-nodes-in-between-zeros
2645-pass-the-pillow

Stack

0084-largest-rectangle-in-histogram
0085-maximal-rectangle
0678-valid-parenthesis-string
0726-number-of-atoms
0957-minimum-add-to-make-parentheses-valid
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
1756-minimum-deletions-to-make-string-balanced
1818-maximum-score-from-removing-substrings
3445-lexicographically-minimum-string-after-removing-stars

Heap (Priority Queue)

0023-merge-k-sorted-lists
0264-ugly-number-ii
0692-top-k-frequent-words
0803-cheapest-flights-within-k-stops
0948-sort-an-array
1325-path-with-maximum-probability
1912-number-of-restricted-paths-from-first-to-last-node
2094-remove-stones-to-minimize-the-total
2616-maximal-score-after-applying-k-operations
3445-lexicographically-minimum-string-after-removing-stars
3495-k-th-nearest-obstacle-queries

Shortest Path

0399-evaluate-division
0803-cheapest-flights-within-k-stops
1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1912-number-of-restricted-paths-from-first-to-last-node
2171-second-minimum-time-to-reach-destination
3235-minimum-cost-to-convert-string-i

Memoization

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

Counting

0692-top-k-frequent-words
1890-sum-of-beauty-of-all-substrings

Backtracking

0040-combination-sum-ii
0047-permutations-ii
1825-find-minimum-time-to-finish-all-jobs

Prefix Sum

0238-product-of-array-except-self
0363-max-sum-of-rectangle-no-larger-than-k
0410-split-array-largest-sum
1435-xor-queries-of-a-subarray
3271-count-the-number-of-houses-at-a-certain-distance-i

Monotonic Stack

0084-largest-rectangle-in-histogram
0085-maximal-rectangle

Bit Manipulation

1435-xor-queries-of-a-subarray
1825-find-minimum-time-to-finish-all-jobs
1881-closest-subsequence-sum
3307-find-the-maximum-sum-of-node-values
3443-maximum-total-reward-using-operations-ii

Binary Tree

0337-house-robber-iii
1207-delete-nodes-and-return-forest
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions

Combinatorics

0458-poor-pigs
1761-count-sorted-vowel-strings
2187-vowels-of-all-substrings

Design

0146-lru-cache

Doubly-Linked List

0146-lru-cache

Interactive

0873-guess-the-word

Game Theory

0873-guess-the-word

Ordered Set

0315-count-of-smaller-numbers-after-self
0363-max-sum-of-rectangle-no-larger-than-k
0493-reverse-pairs

Trie

0692-top-k-frequent-words

Bucket Sort

0692-top-k-frequent-words
0948-sort-an-array

Divide and Conquer

0023-merge-k-sorted-lists
0315-count-of-smaller-numbers-after-self
0493-reverse-pairs
0948-sort-an-array

Merge Sort

0023-merge-k-sorted-lists
0315-count-of-smaller-numbers-after-self
0493-reverse-pairs
0948-sort-an-array

Binary Indexed Tree

0315-count-of-smaller-numbers-after-self
0493-reverse-pairs
1511-count-number-of-teams

Segment Tree

0315-count-of-smaller-numbers-after-self
0493-reverse-pairs

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Sliding Window

2255-minimum-swaps-to-group-all-1s-together-ii

Bitmask

1825-find-minimum-time-to-finish-all-jobs
1881-closest-subsequence-sum

Eulerian Circuit

0332-reconstruct-itinerary

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages