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