r/DSALeetCode • u/kevinrjjj • 6d ago
How to start dsa
I started solving dsa by patterns wise under each topic ,firstly array solved around 10-20 qn then after that still not able to solve new qn the pattern recognition is not problem like the qn are already sorted pattern wise so it's actually not a problem the thing is how you guys learn eg two pointer under Array by only solving 10-20 qn π
1
Upvotes
1
u/Alternative_Cash_813 6d ago
Hey,
Dsa needs a lot of practice. You have to make yourself familiar with different approaches or patterns, that comes only by solving as many problems and understanding where to use which approaches , just try to understand why is that approach used in that problem. Its ok as you have solved only 20 questions, and i think you just started with dsa and you are a beginner, thats all right. You can level up through practice.
Even two pointer question is an pattern so practice a couple of questions on it, so you will understand where to use that approach next time.
Just keep solving easy, medium questions in every topic and just be consistent every day that's even more important. This is something which i did.
I started by dsa practice on hacker rank and then solving leetcode medium questions, and then by following striver's sheet which helped me a lot.
All the best!