Skip to content

Sakshi9335/Leetcode-DSA-Problems

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

banner

πŸ“˜ LeetCode DSA Solutions

Welcome to my curated collection of LeetCode Data Structures & Algorithms problems.
This repository documents my daily practice, structured topic-wise, and updated consistently as I submit new solutions on LeetCode using the LeetHub extension.


πŸ’‘ Why This Repo?

πŸ”Ή Track and reflect on my problem-solving growth
πŸ”Ή Maintain a consistent DSA preparation routine
πŸ”Ή Build a clean, structured archive of optimized solutions
πŸ”Ή Provide reference-ready code for others


πŸ“¦ What’s Inside?

  • βœ… Solutions to LeetCode problems in Java / C++ / Python
  • βœ… Categorized folders for major DSA topics (Arrays, Strings, Trees, Dynamic Programming, etc.)
  • βœ… Clean and readable code with explanatory comments
  • βœ… Regularly updated after each LeetCode submission
  • βœ… Focus on efficiency, clarity, and correctness

πŸ“ Repository Structure

Leetcode-DSA-Problems

β”œβ”€β”€ Arrays

β”œβ”€β”€ Strings

β”œβ”€β”€ Trees

β”œβ”€β”€ DynamicProgramming

β”œβ”€β”€ 0001-two-sum.java

β”œβ”€β”€ 0002-add-two-numbers.java

β”œβ”€β”€ 0003-longest-substring-without-repeating-characters.java

β”œβ”€β”€ ...

└── README.md

Each file is named with the LeetCode problem ID and title, and includes a link to the original problem.


πŸ”„ Update Frequency

This repository is updated automatically whenever I submit a solution on LeetCode.


🀝 Connect With Me


LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0027-remove-element
0033-search-in-rotated-sorted-array
0035-search-insert-position
0074-search-a-2d-matrix
0080-remove-duplicates-from-sorted-array-ii
0081-search-in-rotated-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0240-search-a-2d-matrix-ii
0268-missing-number
0287-find-the-duplicate-number
0560-subarray-sum-equals-k
0724-find-pivot-index
0792-binary-search
1016-subarray-sums-divisible-by-k
1019-squares-of-a-sorted-array
1603-running-sum-of-1d-array
1833-find-the-highest-altitude
1925-count-nice-pairs-in-an-array
2102-find-the-middle-index-in-array
2448-count-number-of-bad-pairs

Two Pointers

0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0027-remove-element
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0287-find-the-duplicate-number
1019-squares-of-a-sorted-array
2481-strictly-palindromic-number

Hash Table

0001-two-sum
0169-majority-element
0202-happy-number
0268-missing-number
0560-subarray-sum-equals-k
1016-subarray-sums-divisible-by-k
1925-count-nice-pairs-in-an-array
2448-count-number-of-bad-pairs

Dynamic Programming

0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
1013-fibonacci-number

Greedy

0011-container-with-most-water
0122-best-time-to-buy-and-sell-stock-ii

Math

0007-reverse-integer
0069-sqrtx
0189-rotate-array
0202-happy-number
0231-power-of-two
0268-missing-number
0326-power-of-three
0342-power-of-four
0367-valid-perfect-square
1013-fibonacci-number
1925-count-nice-pairs-in-an-array
2448-count-number-of-bad-pairs
2481-strictly-palindromic-number

Bit Manipulation

0231-power-of-two
0268-missing-number
0287-find-the-duplicate-number
0342-power-of-four

Recursion

0231-power-of-two
0326-power-of-three
0342-power-of-four
1013-fibonacci-number

Memoization

1013-fibonacci-number

Binary Search

0033-search-in-rotated-sorted-array
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0081-search-in-rotated-sorted-array-ii
0153-find-minimum-in-rotated-sorted-array
0154-find-minimum-in-rotated-sorted-array-ii
0162-find-peak-element
0167-two-sum-ii-input-array-is-sorted
0240-search-a-2d-matrix-ii
0268-missing-number
0278-first-bad-version
0287-find-the-duplicate-number
0367-valid-perfect-square
0792-binary-search

Brainteaser

2481-strictly-palindromic-number

Sorting

0088-merge-sorted-array
0169-majority-element
0268-missing-number
1019-squares-of-a-sorted-array

Divide and Conquer

0169-majority-element
0240-search-a-2d-matrix-ii

Counting

0169-majority-element
1925-count-nice-pairs-in-an-array
2448-count-number-of-bad-pairs

Interactive

0278-first-bad-version

Matrix

0074-search-a-2d-matrix
0240-search-a-2d-matrix-ii

Prefix Sum

0560-subarray-sum-equals-k
0724-find-pivot-index
1016-subarray-sums-divisible-by-k
1603-running-sum-of-1d-array
1833-find-the-highest-altitude
2102-find-the-middle-index-in-array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages