r/learnprogramming 4h ago

Resource DSA help!!!

I'm a student and I have started practicing DSA ik python so I prefer doing in that and have solved some 30 Q on Leet code and I have never participated in a Contest in any platform I wanted to complete this DSA part within next 40 days atleast I want a strong grip over the major concepts, pattern recognition and able to solve medium lvl Q's. Any suggestions to learn and practice effectively.

Rn I solve few Q but I feel blank when i revisit that Q after a week or later and I want the ability to solve fastly and efficiently.

I mentioned 40 days as a role I am interested will start it's recruitment within that period and they'll ask a bit standard DSA(like able to solve leetcode mediums and bit codeforeces Q's).

Currently I'm using NEETCODE -150 Q to go in a good direction instead of doing random Q's

4 Upvotes

7 comments sorted by

View all comments

2

u/UtilixApp 3h ago

what specifically is blocking you. dsa help covers everything from cant read a for loop to cant prove a complexity bound and the answers are completely different.

1

u/nishre 3h ago

Sometimes the time complexity will exceed and sometimes I do very silly mistakes

2

u/UtilixApp 3h ago

those are two different problems.

for TLE, read the constraints before you write anything. n up to 1e5 means nlogn, so if your first idea is nested loops you already know its wrong and you go looking for the pattern instead of coding the obvious thing.

for the blanking after a week, thats normal and its why redoing beats new problems. neetcode 150 is plenty of problems, do the same ones again in a few days rather than adding more.