Https://ide.codingblocks.com/s/257447 why its clearing only 2 testcases plzz comment it put the errors

its a k append question why it is clearing only 2 testscases is there any mistake pllzz comment it pout the errioors

add two conditions to your code


 1) if(k==n)return head;
 2) if(k>n)k=k%n;

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.