Skip to content

mohitjaryal/DSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 DSA Journey

This repo is my personal notebook of Data Structures & Algorithms problems.
Every file here is a step toward becoming a better problem solver.

🔑 Highlights

  • Clean C++ solutions
  • Problems from LeetCode & beyond
  • Organized and easy to revisit
  • Growing as I learn ✨

📌 Problem List

# Problem Name File Link Approach / Notes
1 Two Sum problem1.cpp Hash map / brute force
15 3Sum problem15.cpp Sorting + two pointers
18 4Sum problem18.cpp Sorting + two pointers
50 Pow(x, n) problem50.cpp Fast exponentiation
69 Sqrt(x) pproblem69.cpp Binary search
167 Two Sum II (sorted) problem167.cpp Two pointers
633 Sum of Squares problem633.cpp Two Pointers
Numbers
367 Valid Perfect Square problem367.cpp Binary Search
2200 Find All K-Distant
Indices in an Array problem2200.cpp Binary Search
11 Container with Most
water. problem11.cpp 2 Pointer / Brute force
238 Product of array problem238.cpp
Expect Self Cumulative Product
1480 Runnig Sum of 1D Array problem1480.cpp Commulative Sum
136 Single Number problem136.cpp Bit Manipulation (XOR)
122 Best Time TO Buy and problem122.cpp Greedy Approach
Sell Stock
1672 Customer with maxWealth problem1672.cpp Brute Force
1281 Subtract the Product and problem1281.cpp Iterative Approach (% and /)
Sum of Digits of an Integer
9 Palindrome Number problem9.cpp Reverse
7 Reverse number problem7.cpp Reverse
258 Add Digits problem258.cpp Modulus (%) & Division (/)
263 Ugly Number problem263.cpp Modulus (%) & Division (/)
326 Power of three problem326.cpp Iterative Check
507 Perfect Number problem507.cpp Repeated Division
33 Rotated Sorted Array problem33.cpp Binary Search

💡 Not just answers, but the process of learning DSA.

About

DSA Learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages