2 test cases correct and 2 wrong. Not able to figure the mistake
Linked list_ K-append
Your code fails when value of k > n, thus use the following implementation
k=k%N;
if(k==0)
{
print(head);
}
else
{
head=append_nodes(head,k);
print(head);
}