juniorLinked Lists
What is a 'Node' in a Linked List?
Updated Apr 28, 2026
Short answer
A container that holds a data value and a reference (pointer) to another node.
Deep explanation
Linked lists are the foundation of dynamic data structures. A container that holds a data value and a reference (pointer) to another node. They provide O(1) insertion at the front, which is superior to O(n) in arrays.
Real-world example
Undo functionality in text editors.
Common mistakes
- Forgetting to handle the case where the list is empty (Null check).
Follow-up questions
- What is the search complexity?