I want to learn DSA in Javascript

I want to learn data structures and algorithms in javascript. What are the basic requirements to do so and from where should i start.

I thinks its included in a Codecademy course: Pass The Technical Interview with JavaScript
But you’d probably want to do an intro to JavaScript course first like Learn Javascript.

Thanks brother i already have a good understanding of js i just want to refine my skills.

I think just that. If you know a programming language that’s almost good enough to start. Knowing some basic discrete math also helps a ton (for example to know why running two loops searching for every combination of pairs take n choose 2 work, or O(n^2). But knowing the math is not a strong prerequisite to just start.

You will want to start thinking about how much things cost in terms of runtime (and space too) in that language. For example: basic loops, nested loops, loops that don’t go through every item, array insertion at different points of the array, etc.

You should look up some DSA curriculum and see what they start out with.

A very beginnger friendly text is: Grokking Algorithms

CLRS introduction to algorithms is the standard reference text, and although very good, it might be a step up in difficulty if you’re not used to the formal style of writing and more rigorous approach to math.

Once you get more comfortable to the ideas you could check some online courses that talk about this, but be forewarned it does get hard fast.

Find some community that likes to study these and ask around (you’ll often find some for people trying to interview into a software engineer role). Discord can be great for that kind of thing.

1 Like

Actually brother i am developing web apps from almost a year and now i want to become job ready. I also want to improve my javascript skills because insteas of learning different langugaes i want to become proficient in one thats why i am planning to do dsa in javascript. Thanks for your reply now i have a starting point to do so.