Can you fix my code?
Hey @akash_281 you are not applying your reverse function properly. You have to make it’s return type of node* instead of void. And then you also have to update it’s head. Try again and I will help you in solving it for sure 
Still not getting the right ans
Cause you haven’t updated your head in main function. Do remember that from next time 
1 Like
If this resolve your doubt, please mark it as resolved 