You are viewing a single comment's thread. Return to all comments →
first it recursively reverses the whole list except the first node. Then it reverses the first node. Now the original list is reversed.
Seems like cookies are disabled on this browser, please enable them to open this website
Reverse a linked list
You are viewing a single comment's thread. Return to all comments →
first it recursively reverses the whole list except the first node. Then it reverses the first node. Now the original list is reversed.