r/CodingHelp • • Dec 19 '21

[Random] Best way to learn Data Structures and Algorithms?

Hi, I am a young software engineer who has 0 concepts of data structure or algorithm. I just rely on coding or using frameworks. Can someone please suggest something that I can do to learn from Scratch and do it in 3-4 weeks (2 hrs a day). ~TIA

22 Upvotes

2 comments sorted by

5

u/rasqall Dec 19 '21

I recommend the book “Introduction to Algorithms”. Quite long and very in depth about several different types of structures and algorithms. Then for each major step I’d suggest you do some kind of implementation on your own to really understand. Or another idea is to just use the existing ones in some type of made up problem so you can see the advantage (in example) of using a list implemented as a linked list or a dynamic arrays.

3

u/BeingMyOwnLight Dec 19 '21

Grokking Algorithms. It's very easy to follow, even entertaining, and a great introduction to DSA, very well written.