LL - k Reverse about error


it is giving me error

@17manishms
Couple of changes required.

  1. Do k = k%n before calling the function as it is mentioned that k can be greater than n.
  2. Line 46 , write it as head->next=reverse(n,k);
    You are trying to call with “next”. There is no pointer variable with that name.
  3. Change the argument type for your reverse function. Do not pass head as a reference argument.

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.