How to reverse a singly linked list.
Anonymous
Divide the list in two parts - first node and rest of the linked list. Call reverse for the rest of the linked list. Link rest to first. Fix head pointer.
Check out your Company Bowl for anonymous work chats.