Linked List

Follow the References!

Consider the following linked list:

Exercise In each case, draw a schematic representation of the linked list after the statement is executed. For each statement, start with the linked list displayed above.

head = head.next;
Solution
head.next = head.next.next;
Solution
head.next.next.next.next = head;
Solution