In this only two test test cases get passed and rest get false.
About Linked list-K append problem
Your code will not work for the test case when k>n, hence use following lines of code,
k=k%N;
if(k==0)
{
print(head);
}
else
{
head=append_nodes(head,k);
print(head);
}