Three Pointers
206. Reverse Linked List
Reverse a Doubly Linked List
Reverse both parts
Easy1 solution1 playground
Solutions:
During the loop the top panel (head) shows the original list being unwound in place. Once line 41 (new_head = front) fires, a second panel labelled new_head (result) appears with the reversed chain — by the end it contains all nodes in the final [3,2,1,5,4] order for the default preset. The legacy view drew this as two side-by-side reversed segments; the two-panel form makes the same point.