why my code only passes two test cases,for rest of the testcases,it gives run time error
Linked-List-kappend
Please check on the corner cases because it is not guranteed that k will be less than n.
k = k % n try to make it this way so as to make k smaller than n.
Cool. Please mark it resolved if u r happy with our service.