Concept Flow - Reverse a Singly Linked List Recursive
Start with head node
Base case: head is null or head.next is null?
|Yes
Return head as new head
No
Recursive call: reverseList(head.next)
After recursion returns: head.next.next = head
Set head.next = null
Return new head from recursion
Done: list reversed
The function calls itself moving to the end of the list, then reverses links on the way back.
