Wgats wrong with reverse?
yeah sure no problem
hello @akash_281i have corrected your code and now it is printing the correct result .
please find the mistake in reverse function you have to pass your head by reference .
1 Like
alright thanks a lot
hey @akash_281 if you feel that your doubt is cleared please mark this doubt as resolved and give your ratings after making this doubt as resolved .
Happy Learning !!