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 :slight_smile:


Still not getting the right ans

Cause you haven’t updated your head in main function. Do remember that from next time :slight_smile:

1 Like

If this resolve your doubt, please mark it as resolved :grinning: