Concept Flow - Reverse a Singly Linked List Iterative
Start with head node
Initialize prev = None, current = head
Loop while current != None
Save next = current.next
Reverse pointer: current.next = prev
Move prev = current
Move current = next
Loop ends when current == None
Return prev as new head
We start from the head and move through the list, reversing each node's pointer to the previous node until we reach the end. The previous pointer becomes the new head.
