What is a singly linked list?

Arrays Linked Lists Questions



46 Short 80 Medium 67 Long Answer Questions Question Index

What is a singly linked list?

A singly linked list is a data structure that consists of a sequence of nodes, where each node contains a value and a reference (or link) to the next node in the sequence. It is called "singly" linked because each node only has a link to the next node, and there is no link to the previous node. The first node in the list is called the head, and the last node is called the tail, which has a null reference as its next node.