Back

Simple Singly Linked List Visualization Using JavaScript

What is a Linked list.

Linked List is a linear data structure and it is very common data structure which consists of group of nodes in a sequence which is divided in two parts. Each node consists of its own data and the address of the next node and forms a chain.
The below UI example would help in visualizing the linked list for three operations i.e Add, Search and Remove.

Add Insert at front
Search
Remove
Status
Runtime Complexity
Indexing Insert/delete at beginning Insert/delete at end (when last element is known) Insert/delete in middle Wasted space (average)
Θ(n) Θ(1) Θ(1) Θ(n) + Θ(1) Θ(1)