Steps to reverse a Singly Linked List. Create two more pointers other than head namely prevNode and curNode that will hold the reference of previous node and current node respectively. Make sure that prevNode points to first node i.e. prevNode = head. ... Move head node to its next node i.e. head = head->next
Answers & Comments
Answer:
Steps to reverse a Singly Linked List. Create two more pointers other than head namely prevNode and curNode that will hold the reference of previous node and current node respectively. Make sure that prevNode points to first node i.e. prevNode = head. ... Move head node to its next node i.e. head = head->next
Explanation: