How Do I Get Unstuck with Data Structures and Algorithms?
Asked by
boreal.forest
I've been trying to learn data structures and algorithms (DSA) for a while now, but I keep finding myself stuck at the basics like arrays and strings. I initially thought the issue was because of the programming language; I've tried C++, Java, and now I'm using Python. What strategies can I use to move forward in learning DSA? I find that the problems I've solved before I can often do again without issues, but I'm just not progressing.
Answers
Learning DSA effectively often requires structured teaching, like a university course where you can interact with instructors. How are you currently learningโbooks and YouTube? If so, think about finding a mentor or a community for support. Also, what exactly is tripping you up about arrays and strings? Understanding fundamental concepts, like how arrays are laid out in memory, can really help.
Reply to this answer
Honestly, it seems like you're having a challenges with your study habits rather than with the language itself. Choose one programming language and stick to it while following a single comprehensive resource, like the NeetCode 150 or an organized DSA course. Work through topics sequentially and practice regularly; try to explain back what you've learned as if teaching someone else.
Reply to this answer
It sounds like you might be mixing up solving problems with really learning DSA. Theyโre not the same! Before diving into solving problems on platforms like LeetCode, make sure you understand the foundational concepts of data structures and algorithms. There are tons of resources out there to help you study DSA directly, which can make a big difference in your understanding.
Reply to this answer
You actually need to learn DSA as a theoretical subject, not just tackle random problems. This book I linked has great insights. It's crucial to get a solid foundation, so look into materials that teach DSA concepts clearly.
Reply to this answer
If you're feeling stuck at such a basic level, maybe you should gain some more programming experience first. Arrays and strings are pretty fundamental; theyโre all about using indexes and loops. Youโre probably confusing DSA basics with something else. Make sure you're clear on those concepts before jumping into heavier topics.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions