LL-k Reverse linked list


what is the error in the code? modifications required?

Hello @Vibhuti0206,

  1. Output format is wrong.
    Each value should be separated by a space.

  2. Not incrementing count

  3. Not handling head properly.

I have modified your code:

Hope, this would help.
Give a like if you are satisfied.