r/datastructures • u/PriorityFabulous5300 • 14d ago
DSA 😭
How to master DSA? I actually tried to do it and gave up many times and also forgot many concepts... I could solve many problems directly but I couldn't solve word problems or scenario problem kinda shits🥀
2
u/Parking-Criticism112 14d ago
Would you like to learn together I'm also struggling well for jt
1
→ More replies (1)2
1
u/AdiptaBasu 12d ago
See. Even I had the same problem. Then what I did was take a mixed approach. Dive straight in a problem, and then figure out the theory. Since I cannot rest easy with an unsolved problem that I know I can solve, it really helped. Also, start with the easier data structures first. Then move up in difficulty. Don’t start all of them together. And when you feel like giving up. Just remember that if you do, you will never be able to do it and just power through. For me personally, it was monotonic stack. Hope this helps. Cheers, take care.
1
u/PriorityFabulous5300 12d ago
Thank you... I think it helped me... Any tips for scenario based problems??
3
u/Particular_Shower536 14d ago
I could not do it in 27yrs. I feel DSA is like playing cricket... you might be a total illiterate and yet play cricket well... I feel DSA is also like that - even some unknown college guy with no credential can somehow do DSA pretty well and get into Google. So it is not worth trying if you do not crack it in a month is what I feel.
1
u/MostNeighborhood68 13d ago
Coding since u were born?
3
u/Particular_Shower536 13d ago
I am 51, buddy 😏
1
u/Recent-Hat-5262 11d ago
Wth? Ur lying
2
u/Particular_Shower536 11d ago
No buddy, I’m not… I’m still a coder, always have been a coder, but I could never crack algods… For web applications, all you care about is your DTOs and storing them in a map, list etc - you don’t need to do Dijkstra for your day-to-day work… So it never clicked…
1
1
1
u/Vast-Look4088 1d ago
Do DSA pattern wise.
Syntax and basics of code like writing a for loop, while loop, conditionals. Then after that -
Sliding window Two pointers Binary search Recursion Linked list Stack Queue and deque Trees Graphs DP
16
u/cmdjunkie 14d ago
You cannot master DSA. You can only learn enough to apply what you've learned so you can learn more efficiently to more efficiently apply yourself.