Linked List-K Append

I have tries all border cases, still 3 test cases are failing.
My solution even matches with the hint for the question.

k can be greater than n as well. You have not considered this case.

1 Like

but what to do if k is greater than n?
should i do k=k%n ?

yes it was right… k=k%n
thank you !

Okay great. @taritkandpal Please mark your doubt as resolved now.