Skip to content
Sandeep-003Public

About

Collection of LeetCode questions to ace the coding interview!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

825 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

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

LeetCode Topics

String

0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0022-generate-parentheses
0079-word-search
0131-palindrome-partitioning
0273-integer-to-english-words
0592-fraction-addition-and-subtraction
0640-solve-the-equation
0768-partition-labels
1250-longest-common-subsequence
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
1818-maximum-score-from-removing-substrings
2076-sum-of-digits-of-string-after-convert
2163-kth-distinct-string-in-an-array
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2502-sort-the-people
3235-minimum-cost-to-convert-string-i
3276-minimum-number-of-pushes-to-type-word-ii
3482-construct-string-with-minimum-cost

Dynamic Programming

0022-generate-parentheses
0064-minimum-path-sum
0070-climbing-stairs
0131-palindrome-partitioning
0198-house-robber
0264-ugly-number-ii
0279-perfect-squares
0300-longest-increasing-subsequence
0322-coin-change
0650-2-keys-keyboard
0909-stone-game
1008-binary-tree-cameras
1250-longest-common-subsequence
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
1511-count-number-of-teams
2067-maximum-number-of-points-with-cost
3482-construct-string-with-minimum-cost
3535-find-the-count-of-monotonic-pairs-i
3542-maximum-value-sum-by-placing-three-rooks-ii
3550-maximum-value-sum-by-placing-three-rooks-i

Backtracking

0017-letter-combinations-of-a-phone-number
0022-generate-parentheses
0039-combination-sum
0040-combination-sum-ii
0078-subsets
0079-word-search
0131-palindrome-partitioning

Hash Table

0017-letter-combinations-of-a-phone-number
0264-ugly-number-ii
0768-partition-labels
0870-magic-squares-in-grid
0906-walking-robot-simulation
0984-most-stones-removed-with-same-row-or-column
1207-delete-nodes-and-return-forest
1741-sort-array-by-increasing-frequency
2163-kth-distinct-string-in-an-array
2270-find-all-lonely-numbers-in-the-array
2306-create-binary-tree-from-descriptions
2502-sort-the-people
3276-minimum-number-of-pushes-to-type-word-ii
3416-sum-of-digit-differences-of-all-pairs
3501-delete-nodes-from-linked-list-present-in-array

Array

0039-combination-sum
0040-combination-sum-ii
0064-minimum-path-sum
0078-subsets
0079-word-search
0084-largest-rectangle-in-histogram
0198-house-robber
0200-number-of-islands
0204-count-primes
0240-search-a-2d-matrix-ii
0300-longest-increasing-subsequence
0307-range-sum-query-mutable
0315-count-of-smaller-numbers-after-self
0322-coin-change
0624-maximum-distance-in-arrays
0695-max-area-of-island
0719-find-k-th-smallest-pair-distance
0870-magic-squares-in-grid
0890-lemonade-change
0906-walking-robot-simulation
0909-stone-game
0921-spiral-matrix-iii
0948-sort-an-array
1207-delete-nodes-and-return-forest
1325-path-with-maximum-probability
1333-sort-the-jumbled-numbers
1496-lucky-numbers-in-a-matrix
1511-count-number-of-teams
1615-range-sum-of-sorted-subarray-sums
1711-find-valid-matrix-given-row-and-column-sums
1720-crawler-log-folder
1741-sort-array-by-increasing-frequency
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2006-find-the-student-that-will-replace-the-chalk
2035-count-sub-islands
2067-maximum-number-of-points-with-cost
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2163-kth-distinct-string-in-an-array
2255-minimum-swaps-to-group-all-1s-together-ii
2270-find-all-lonely-numbers-in-the-array
2306-create-binary-tree-from-descriptions
2411-spiral-matrix-iv
2472-build-a-matrix-with-conditions
2502-sort-the-people
2846-robot-collisions
3235-minimum-cost-to-convert-string-i
3416-sum-of-digit-differences-of-all-pairs
3427-special-array-ii
3466-number-of-subarrays-with-and-value-of-k
3482-construct-string-with-minimum-cost
3501-delete-nodes-from-linked-list-present-in-array
3535-find-the-count-of-monotonic-pairs-i
3542-maximum-value-sum-by-placing-three-rooks-ii
3550-maximum-value-sum-by-placing-three-rooks-i

Two Pointers

0719-find-k-th-smallest-pair-distance
0768-partition-labels
1615-range-sum-of-sorted-subarray-sums

Greedy

0624-maximum-distance-in-arrays
0768-partition-labels
0890-lemonade-change
1711-find-valid-matrix-given-row-and-column-sums
1818-maximum-score-from-removing-substrings
3276-minimum-number-of-pushes-to-type-word-ii

Bit Manipulation

0078-subsets
0476-number-complement
3466-number-of-subarrays-with-and-value-of-k

Matrix

0064-minimum-path-sum
0079-word-search
0200-number-of-islands
0240-search-a-2d-matrix-ii
0695-max-area-of-island
0870-magic-squares-in-grid
0921-spiral-matrix-iii
1496-lucky-numbers-in-a-matrix
1711-find-valid-matrix-given-row-and-column-sums
2035-count-sub-islands
2067-maximum-number-of-points-with-cost
2132-convert-1d-array-into-2d-array
2411-spiral-matrix-iv
2472-build-a-matrix-with-conditions
3542-maximum-value-sum-by-placing-three-rooks-ii
3550-maximum-value-sum-by-placing-three-rooks-i

Math

0070-climbing-stairs
0204-count-primes
0263-ugly-number
0264-ugly-number-ii
0273-integer-to-english-words
0279-perfect-squares
0592-fraction-addition-and-subtraction
0640-solve-the-equation
0650-2-keys-keyboard
0870-magic-squares-in-grid
0909-stone-game
1951-find-the-winner-of-the-circular-game
2155-find-missing-observations
3416-sum-of-digit-differences-of-all-pairs
3535-find-the-count-of-monotonic-pairs-i

Recursion

0273-integer-to-english-words
1951-find-the-winner-of-the-circular-game

Queue

1951-find-the-winner-of-the-circular-game

Simulation

0592-fraction-addition-and-subtraction
0640-solve-the-equation
0906-walking-robot-simulation
0921-spiral-matrix-iii
1803-average-waiting-time
1951-find-the-winner-of-the-circular-game
2006-find-the-student-that-will-replace-the-chalk
2076-sum-of-digits-of-string-after-convert
2132-convert-1d-array-into-2d-array
2155-find-missing-observations
2411-spiral-matrix-iv
2846-robot-collisions

Binary Search

0240-search-a-2d-matrix-ii
0300-longest-increasing-subsequence
0315-count-of-smaller-numbers-after-self
0719-find-k-th-smallest-pair-distance
1615-range-sum-of-sorted-subarray-sums
2006-find-the-student-that-will-replace-the-chalk
3427-special-array-ii
3466-number-of-subarrays-with-and-value-of-k

Segment Tree

0307-range-sum-query-mutable
0315-count-of-smaller-numbers-after-self
1511-count-number-of-teams
3466-number-of-subarrays-with-and-value-of-k

Suffix Array

3482-construct-string-with-minimum-cost

Stack

0020-valid-parentheses
0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0145-binary-tree-postorder-traversal
1298-reverse-substrings-between-each-pair-of-parentheses
1720-crawler-log-folder
1818-maximum-score-from-removing-substrings
2846-robot-collisions

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0145-binary-tree-postorder-traversal
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree
0789-kth-largest-element-in-a-stream
1008-binary-tree-cameras
1207-delete-nodes-and-return-forest
1484-linked-list-in-binary-tree
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0145-binary-tree-postorder-traversal
0200-number-of-islands
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree
0684-redundant-connection
0695-max-area-of-island
0984-most-stones-removed-with-same-row-or-column
1008-binary-tree-cameras
1207-delete-nodes-and-return-forest
1300-critical-connections-in-a-network
1484-linked-list-in-binary-tree
1653-number-of-good-leaf-nodes-pairs
2035-count-sub-islands
2217-step-by-step-directions-from-a-binary-tree-node-to-another

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0145-binary-tree-postorder-traversal
0236-lowest-common-ancestor-of-a-binary-tree
0543-diameter-of-binary-tree
0789-kth-largest-element-in-a-stream
1008-binary-tree-cameras
1207-delete-nodes-and-return-forest
1484-linked-list-in-binary-tree
1653-number-of-good-leaf-nodes-pairs
2217-step-by-step-directions-from-a-binary-tree-node-to-another
2306-create-binary-tree-from-descriptions

Binary Search Tree

0098-validate-binary-search-tree
0789-kth-largest-element-in-a-stream

Memoization

0070-climbing-stairs

Breadth-First Search

0200-number-of-islands
0279-perfect-squares
0322-coin-change
0684-redundant-connection
0695-max-area-of-island
1484-linked-list-in-binary-tree
2035-count-sub-islands

Union Find

0200-number-of-islands
0684-redundant-connection
0695-max-area-of-island
0984-most-stones-removed-with-same-row-or-column
2035-count-sub-islands

Monotonic Stack

0084-largest-rectangle-in-histogram

Graph

0684-redundant-connection
0984-most-stones-removed-with-same-row-or-column
1300-critical-connections-in-a-network
1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
2472-build-a-matrix-with-conditions
3235-minimum-cost-to-convert-string-i

Topological Sort

2472-build-a-matrix-with-conditions

Sorting

0719-find-k-th-smallest-pair-distance
0948-sort-an-array
1333-sort-the-jumbled-numbers
1615-range-sum-of-sorted-subarray-sums
1741-sort-array-by-increasing-frequency
2502-sort-the-people
2846-robot-collisions
3276-minimum-number-of-pushes-to-type-word-ii

Counting

2163-kth-distinct-string-in-an-array
2270-find-all-lonely-numbers-in-the-array
3276-minimum-number-of-pushes-to-type-word-ii
3416-sum-of-digit-differences-of-all-pairs

Prefix Sum

2006-find-the-student-that-will-replace-the-chalk
3427-special-array-ii
3535-find-the-count-of-monotonic-pairs-i

Divide and Conquer

0240-search-a-2d-matrix-ii
0315-count-of-smaller-numbers-after-self
0948-sort-an-array

Heap (Priority Queue)

0264-ugly-number-ii
0789-kth-largest-element-in-a-stream
0948-sort-an-array
1325-path-with-maximum-probability

Merge Sort

0315-count-of-smaller-numbers-after-self
0948-sort-an-array

Bucket Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Shortest Path

1325-path-with-maximum-probability
1456-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance
3235-minimum-cost-to-convert-string-i

Binary Indexed Tree

0307-range-sum-query-mutable
0315-count-of-smaller-numbers-after-self
1511-count-number-of-teams

Design

0307-range-sum-query-mutable
0789-kth-largest-element-in-a-stream

Ordered Set

0315-count-of-smaller-numbers-after-self

Linked List

1484-linked-list-in-binary-tree
2411-spiral-matrix-iv
3501-delete-nodes-from-linked-list-present-in-array

Data Stream

0789-kth-largest-element-in-a-stream

Combinatorics

3535-find-the-count-of-monotonic-pairs-i

Sliding Window

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

Game Theory

0909-stone-game

Enumeration

0204-count-primes
3542-maximum-value-sum-by-placing-three-rooks-ii
3550-maximum-value-sum-by-placing-three-rooks-i

Number Theory

0204-count-primes

Biconnected Component

1300-critical-connections-in-a-network

About

Collection of LeetCode questions to ace the coding interview!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages