I have tries all border cases, still 3 test cases are failing.
My solution even matches with the hint for the question.
Linked List-K Append
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 !