We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is not making sense to me.
First you point the nextNode to currNode.next that is fine.
Then you point the currentnode....
Oh wait, yes it correct. I just did some numerations. Its perfect.
But how does that above guy solve with the Reverse() function.
What is that function?
Cookie support is required to access HackerRank
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 →
This is not making sense to me. First you point the nextNode to currNode.next that is fine. Then you point the currentnode.... Oh wait, yes it correct. I just did some numerations. Its perfect. But how does that above guy solve with the Reverse() function. What is that function?