Concept Flow - Reverse a Singly Linked List Iterative
Start: head points to first node
Initialize prev = nullptr, current = head
Loop while current != nullptr
Save next = current->next
Reverse link: current->next = prev
Move prev = current
Move current = next
Repeat loop
Loop ends when current == nullptr
Set head = prev (new head)
Done: list reversed
We start with pointers prev and current. We reverse each node's next pointer to point backward, moving forward until all nodes are reversed.
