Doubt in k reverse linked list

Can you help me with code to this question with an explanation


Refer this approach. Each step is commented

can yo help me to check the error and complete the main function of the code i have done

hey please respond i need your help

Check this. The approach is similar to what you are trying.

If you want the explanation, you can read it from here https://www.geeksforgeeks.org/reverse-a-list-in-groups-of-given-size/

hey why my code is not getting submitted

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.