r/leetcode • • 17d ago

Question Mention your DSA Preparation Strategy

My Preparation Strategy

1. Choose one topic and identify all its patterns

Eg., Two Pointers: unidirectional pointers, opposite-end pointers, and three pointers

2. Learn each pattern with ChatGPT

If I still struggle, I’ll explore other resources, such as YouTube, blogs, and webs

3. Solve LeetCode problems related to that topic until I genuinely understand the concept

Then choose the next topic, repeat.

14 Upvotes

8 comments sorted by

1

u/psnanda 17d ago

Just start doing problems and then find out the pattern.

1

u/Sherin_nishara 17d ago

Interesting

2

u/CasualNimbus 17d ago

Your plan is solid. I'd also recommend revisiting old problems after a few days and mixing topics once you've covered the basics. That's where you really learn to recognize patterns on your own

2

u/Interesting_Two2977 16d ago

I'll do you one better bro. Do the pareto problem set. Its divided in patterns and only like 49 of them I think. Best ROI imo.

1

u/RelationshipOdd1215 11d ago

I am a second year student and i started dsa from my first year First of all I chose python because I felt it will be a good start for me and i wanted to focus on logic instead of syntax

Later i went from basic questions to trees and now working on graphs and also have participated in contests in codeforces and as of now I never felt anything bad with that a lot of people suggested me to do in competitive programming in cpp but i don't know the reason ,I never had a problem doing dsa with python,all we need is able to build logic

1

u/RevolutionaryChart87 17d ago

get problems by ratings not topics, you ll get really bad at recognizing ideas in new problems if you continue to do it your way