LL K reverse couldnt solve


i tried ll k reverse in ide but somehow it is not working . I tried it All evening but somehow i couldnt solve it

Check now =>

hey I am also doing same question and the output is coming correct yet the challenges page is showing wrong answer can u check my answer??.

Share the link of the challenge where you are submitting it.

its a question of my course

Check now =>

again wrong answer is coming and you simply eliminated temp rest was the same .

Update head in main too, by calling the function. Also ask a new doubt cause this doubt thread belongs to some other student. For your own you have to post a new doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.