Data Structures
First observe the behavior in Explore mode, then switch to Apply to test each operation with intent.
A linked list is a dynamic data structure where elements (nodes) are connected via pointers/references. Unlike arrays, linked lists don't require contiguous memory and can grow dynamically.
Nodes: Data + pointer to next node
Array - Access arr[i]: O(1) | Linked List - Access: O(n)
Arrows show pointers. Access follows links node by node from HEAD.
Ready|Waiting for a linked list operation
Time: Depends on operation|Space: O(1) auxiliary
Pseudocode
Linked lists move by pointers, so reaching a node means following links from HEAD.
Explore mode: click nodes and follow arrows to understand pointer links.
Head: First node in the list
Nodes: Data + pointer to next node
In Apply mode, test one operation and explain its complexity before running the next.
Before clicking run, predict the next index/pointer movement and then verify it.