How to Create a Linked List, Queue and Stack in JavaScript

preview_player
Показать описание
Linked lists, stacks and queues are some of the most common data structures in computer science. In this video I'll show you one way of implementing a linked list, stack and queue
using JavaScript.

Check out my website

Find me here

More information from my blog
Рекомендации по теме
Комментарии
Автор

This is the best and simplest explanation of LinkedList implementation in Javascript. I am a fan of simplicity and i admire it when i see one

danieladigun
Автор

We were not taught this back in the university. Everything we were taught was based on diagrams and picture in programming text books, lol. Some Universities are not helping matter. I do some complex programming without knowing the meaning of some basic stuff. Thanks Erik and Youtube.

simonkalu
Автор

Great example. Clear and concise and easy to follow. Now, how would I insert a node at Nth position and delete a node? There aren't many examples on the webz that use JS. Thanks.

kennethedwards
Автор

Thanks mate, this helped me get the concept right!

ARNAKLDO
Автор

Thanks for the video. I'm studying data structures and have a theoretical question. For queues, are there Big O issues with implementing #shift instead of some other method of shifting the head (e.g. create a head variable and changing it's index value)? Does shift deliver O(n) vs O(1) for the alternative?

michaelwalker
Автор

Looks like arrays in javascript are diseased linkedlist ...

philserme