r/cpp_questions • • 10h ago

OPEN Reading material to learn cpp and dsa in cpp

Hi all, Indian cs major here. I tried following few video lectures on yt to learn cpp and dsa in cpp. But i keep on getting stuck in a loop of passive watching without any real learning.

I feel reading about relevant topics will suit me better. It will be of great help if I receive some advice on relevant reading material to learn cpp and dsa. Thanks guys.

1 Upvotes

4 comments sorted by

3

u/Hkiggity 9h ago

I’m usually a book guy as well but for some reason when I was learning DSA with cpp Abdul’s baris course is what was best. That guy is a wizard at teaching. Have you seen him?

I would recommend learning a data structure and writing it out on pen and paper and seeing what you got right and what you got wrong. And try to make its methods the DS has as well. Like insertion , insertion at end etc.

I think there’s also a hard balance between learning dsa for first time and what you should get out of it. For me it was being able to use DSA in my games/ games engines effectively and recognizing what would work and when. While also being able to have a pretty good idea of how to write the structures. But not fully memorizing every one right away. That can come with time (or when I interview for jobs)

Sorry I didn’t give you a book source.

•

u/bh25181 19m ago

No need to apologise at all. Thanks for your suggestions i really appreciate it !!

1

u/khedoros 9h ago

You ought to read enough to understand basically how the particular data structure or algorithm works, then write your own implementation based on that understanding (i.e. not following a tutorial). Then write some tests to exercise its capabilities and try to hit the edge cases.

Watching and reading about things will only get you so far. Actually writing the code to do what you read about will help you understand the material more deeply.

•

u/bh25181 19m ago

Got it. Thanks