Data Structures: Linked Lists

Welcome back to my Data Structure learning series. Today we are going to learn Linked Lists and how to implement it in JavaScript.

What are Linked Lists?

Linked Lists are simple, dynamic, lightweight, and flexible data structure. Like arrays, elements are stored sequentially in the list; however, elements are not stored in adjacent blocks of memory but rather in “nodes” or objects that are connected via memory pointers. They are useful for easy addition or removal of arbitrary data at the head and tail of a list, without re-indexing…