K reverse linked list

please explain why we have called with head->next=kreverse…
i am not able to dry run this code

Hi
Here we are first reversing the k(or n) nodes first by ourselves and then passing rest of the work to recursion.
Generally in recursive problems, we do the small work and pass the rest to rescursion

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.