Linked List K Append Test Case

alternate test case are failed, 3 passed 3 failed. Please help

Test case 0 2 4 failed.

u need to update k as
k%= len;
Note that K can be greater than N.

call the append function only when k != 0
in that case just print the original list

check this out if still doubt
https://ide.codingblocks.com/s/223424

please explain the logic of k%=n, i am not getting it properly

this statement is given in the question
so if suppose k > len of string
suppose k = 8 and len = 5
then u can append k%= len
k = 3
can be appended
and u canno t append size 8 since the len lL is just 5
hope u get an idea about it

now only testcase 4 is not passed, please help

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.