Skip to content

This repo contains all the problems I pricticed from the leetcode for the interview preparations conatins most of problems from the https://neetcode.io/roadmap, https://takeuforward.org/interviews/strivers-sde-sheet-top-coding-interview-problems/ and Blind-75.

Notifications You must be signed in to change notification settings

vatsal30/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

This repo contains all the problems I pricticed from the leetcode for the interview preparations conatins most of problems from the https://neetcode.io/roadmap, https://takeuforward.org/interviews/strivers-sde-sheet-top-coding-interview-problems/ and Blind-75.

This repo has been updated using chrome extension LeetHub-2.0 and LeetHub to auto commit the problems once I solved them on leetcode.

LeetCode Topics

Stack

0150-evaluate-reverse-polish-notation
0155-min-stack
0739-daily-temperatures
0780-max-chunks-to-make-sorted
1570-final-prices-with-a-special-discount-in-a-shop
3181-find-building-where-alice-and-bob-can-meet

Design

0155-min-stack
0208-implement-trie-prefix-tree
3678-design-task-manager

Array

0001-two-sum
0015-3sum
0018-4sum
0027-remove-element
0063-unique-paths-ii
0066-plus-one
0088-merge-sorted-array
0118-pascals-triangle
0119-pascals-triangle-ii
0139-word-break
0150-evaluate-reverse-polish-notation
0167-two-sum-ii-input-array-is-sorted
0198-house-robber
0213-house-robber-ii
0283-move-zeroes
0494-target-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
0739-daily-temperatures
0780-max-chunks-to-make-sorted
1025-minimum-cost-for-tickets
1063-best-sightseeing-pair
1524-string-matching-in-an-array
1570-final-prices-with-a-special-discount-in-a-shop
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2292-counting-words-with-a-given-prefix
2358-number-of-ways-to-split-array
2465-shifting-letters-ii
2791-find-the-losers-of-the-circular-game
3181-find-building-where-alice-and-bob-can-meet
3309-count-prefix-and-suffix-pairs-i

Math

0002-add-two-numbers
0062-unique-paths
0066-plus-one
0070-climbing-stairs
0150-evaluate-reverse-polish-notation
2812-find-the-maximum-achievable-number

Monotonic Stack

0739-daily-temperatures
0780-max-chunks-to-make-sorted
1570-final-prices-with-a-special-discount-in-a-shop
3181-find-building-where-alice-and-bob-can-meet

Greedy

0780-max-chunks-to-make-sorted
1502-construct-k-palindrome-strings

Sorting

0015-3sum
0018-4sum
0088-merge-sorted-array
0242-valid-anagram
0389-find-the-difference
0780-max-chunks-to-make-sorted

Tree

0337-house-robber-iii
0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
3058-maximum-number-of-k-divisible-components
3439-find-minimum-diameter-after-merging-two-trees

Depth-First Search

0337-house-robber-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

Breadth-First Search

0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level
3439-find-minimum-diameter-after-merging-two-trees

Binary Tree

0337-house-robber-iii
0515-find-largest-value-in-each-tree-row
2493-reverse-odd-levels-of-binary-tree
2558-minimum-number-of-operations-to-sort-a-binary-tree-by-level

Two Pointers

0015-3sum
0018-4sum
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0088-merge-sorted-array
0167-two-sum-ii-input-array-is-sorted
0283-move-zeroes
1894-merge-strings-alternately

String

0028-find-the-index-of-the-first-occurrence-in-a-string
0139-word-break
0208-implement-trie-prefix-tree
0242-valid-anagram
0389-find-the-difference
0459-repeated-substring-pattern
1502-construct-k-palindrome-strings
1524-string-matching-in-an-array
1537-maximum-score-after-splitting-a-string
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
1894-merge-strings-alternately
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2059-unique-length-3-palindromic-subsequences
2292-counting-words-with-a-given-prefix
2465-shifting-letters-ii
3309-count-prefix-and-suffix-pairs-i

Hash Table

0001-two-sum
0139-word-break
0208-implement-trie-prefix-tree
0242-valid-anagram
0389-find-the-difference
1502-construct-k-palindrome-strings
2059-unique-length-3-palindromic-subsequences
2791-find-the-losers-of-the-circular-game
3678-design-task-manager

Bit Manipulation

0338-counting-bits
0389-find-the-difference
2059-unique-length-3-palindromic-subsequences

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
0459-repeated-substring-pattern
1524-string-matching-in-an-array
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Binary Search

0167-two-sum-ii-input-array-is-sorted
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

Heap (Priority Queue)

3181-find-building-where-alice-and-bob-can-meet
3678-design-task-manager

Graph

3439-find-minimum-diameter-after-merging-two-trees

Dynamic Programming

0062-unique-paths
0063-unique-paths-ii
0070-climbing-stairs
0118-pascals-triangle
0119-pascals-triangle-ii
0139-word-break
0198-house-robber
0213-house-robber-ii
0337-house-robber-iii
0338-counting-bits
0494-target-sum
0689-maximum-sum-of-3-non-overlapping-subarrays
1025-minimum-cost-for-tickets
1063-best-sightseeing-pair
1744-number-of-ways-to-form-a-target-string-given-a-dictionary
2562-count-ways-to-build-good-strings

Backtracking

0494-target-sum

Memoization

0070-climbing-stairs
0139-word-break

Prefix Sum

1537-maximum-score-after-splitting-a-string
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2059-unique-length-3-palindromic-subsequences
2358-number-of-ways-to-split-array
2465-shifting-letters-ii

Ordered Set

3678-design-task-manager

Combinatorics

0062-unique-paths

Linked List

0002-add-two-numbers

Recursion

0002-add-two-numbers

Trie

0139-word-break
0208-implement-trie-prefix-tree
3309-count-prefix-and-suffix-pairs-i

Rolling Hash

3309-count-prefix-and-suffix-pairs-i

Hash Function

3309-count-prefix-and-suffix-pairs-i

Simulation

2791-find-the-losers-of-the-circular-game

Matrix

0063-unique-paths-ii

Counting

1502-construct-k-palindrome-strings

About

This repo contains all the problems I pricticed from the leetcode for the interview preparations conatins most of problems from the https://neetcode.io/roadmap, https://takeuforward.org/interviews/strivers-sde-sheet-top-coding-interview-problems/ and Blind-75.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published