2 testcases fail


kindly look at the code

Your test cases will fail when value of k>n, so, plz use this line of code
k=k%N;
if(k==0)
{
print(head);
}
else
{
head=append_nodes(head,k);
print(head);
}

thank you…got it !

Plz mark your doubt resolved,if you were able to submit it