Linked Lists in JavaScript from Scratch




A guide on creating a linked list in JavaScript from scratch.

Code: https://git.io/vw8kJ

Original source


20 responses to “Linked Lists in JavaScript from Scratch”

  1. i guess contains method can be modified to directly return the address of the node previous to the node to be deleted and then a temporary pointer can be taken to point to the element that is next to the pointer returned by contains method and then it can be deleted directly. and it will save other iterations in remove method. correct me if i m wrong.

  2. Hey Saad ! I loved the implementation. I checked out your channel for other videos… can you post videos to implement other data structures in JS as well… like Graphs, trees, AVL, BSTs… basically algorithms that people would normally implement using JAVA…

  3. Good video, thanks! I've been struggling to learn C# and hit the brick wall that is linked list. Coming from a little bit of a JavaScripty background, I think maybe I can figure it out now.

  4. Hi Saad, amazing work very informative and educational. Could you please tell me what terminal you are using so that you can see your output on the bottom-left? Is that atom? How do you set it up since it's look better than using repl.it

Leave a Reply