What are Linked Lists?
A singly linked list is a collection of nodes where each node stores two pieces of information, some value and a pointer to the next node. There are doubly linked lists where the nodes contain pointers to the next and previous node. In a singly linked list, there is a head or root node where the linked list starts. In a doubly linked list, there is a head and tail node. The next pointer of the last node in a singly linked list will be NULL.

#javascript #programming #data-structures

Data structures— Linked Lists
1.40 GEEK