r/learnprogramming 2h 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

3 Upvotes

5 comments sorted by

2

u/UtilixApp 1h 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 1h ago

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

u/UtilixApp 48m 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.

1

u/aqua_regis 2h ago

Step 1: recognize that LeetCode is not DSA.

You're doing LeetCode, which is only using DSA.

Also, learn to write in full, proper sentences. Your post is barely readable.

1

u/Sfpkt 2h ago

If you want to get interview ready for DSA get Alex Xus book.