Linked List-kappend


is my solution.It passes 5 testcase from 6.

@adeebkan0671 hey ,do k=k% length of linked list at starting after taking k input ,rest your logic is looking correct.

why change k to k%n.it also doesn’t pass 1/6 test case.

@adeebkan0671 that condition is for when k is greater than length suppose length of ll is 5 and you have k=7 so k%l=2 so you have to append 2 nodes ,also remove your >length condition from your code.