Dynamic linear data structures where nodes are connected via pointers. Explore memory allocation, traversal, and pointer manipulation.
1function insertHead(value):2 newNode = Node(value)3 newNode.next = head4 head = newNode
Initial state
* O(1) assuming the pointer to the location is already available.