Every linked list is a chain of nodes, where each node stores a value and one or more references to other nodes. The kinds of linked list differ in two choices: how many links each node carries, and whether the last node leads back to the first.

Types of Linked Lists in Data Structures
There are three basic types:
Singly Linked List: one link per node, pointing forward.
Doubly Linked List: two links per node, pointing forward and backward.
Circular Linked List: the last node links back to the first.
A circular list can itself be singly or doubly linked, which is why some books count four types (circular singly and circular doubly listed separately).
1. Singly Linked List
In a singly linked list, each node has a data field and a single next reference to the node after it. The list is reached through the head reference; an empty list has a null head, and the last node's next is null.

Because a node knows only its successor, a singly linked list can be walked in the forward direction only. It uses the least memory of the three types.
2. Doubly Linked List
A doubly linked list is a linked list in which every node also remembers the node before it. Each node therefore has three fields: a prev reference, the data, and a next reference.
With links in both directions, the list can be traversed forward and backward, and a node can be removed in O(1) when you already hold a reference to it, because its predecessor is directly available. The cost is one extra reference per node.

A doubly linked list node has three parts:

- First Part: the reference to the previous node (
nullin the first node). - Second Part: the value stored in the node.
- Third Part: the reference to the next node (
nullin the last node).
Circular Linked List
In a circular linked list, the last node links back to the first node instead of holding null. There is no natural end, so a traversal stops when it returns to the node where it started.

Circular lists suit jobs that cycle through items repeatedly, such as round-robin scheduling. Like the other types, they grow and shrink one node at a time.