Append k nodes of liklist

https://ide.codingblocks.com/s/62042
It is showing run error for 3 test cases

Hi Kiran, it is mentioned in the question that k can be greater than n. You have not handled that anywhere in your code. Consider the following case:
Input:
7
1 2 2 1 8 5 6
8
If you have to append 8 items, it will be same as appending one item, i.e. you just have to do k=k%n before passing the value of k to the append function.

Just add the line k=k%n after line number 80. I have made this change and you can refer to it here https://ide.codingblocks.com/s/62172