You are viewing a single comment's thread. Return to all comments →
//see if this can help
Node* Reverse(Node* head)
struct Node *current,*prev,*next;
Could u explain current->prev=next; this line meaning??
It's swapping node's left hand with right hand continuously until NULL is reached, then returning the prev pointer to NULL.