https://ide.codingblocks.com/s/227406 this is printing revesed linked list but why it is not reflected back into the original head1
Why not printing reverse of linked list
Hey @codingblockscpp
You might have not noticed but you’re sending not the original head but another value in line 84
That is causing the issue
line 84 is of iterative revese sir…
i still not getting it
problem is occurring on recursive reverse function … iterative reverse function is working file
it is working code if we return the node *& but why this code is not working despite of passing reference of the head … that is my doubt
@codingblockscpp
I’m talking about recursive reverse only
You are changing the head every time before recursively calling reverse function
Line 80
Instead of sending original head you are sending next node as head