I have tried brute force and and linked list method but then also i got 2 as wrong answer and 1 as runtime error out of 4 test cases i want to ask what is meant by K>=N??
HELP
What will happen when K>=N? what is appropriate approach then?
Appending any multiples of n last elements would lead to the same list. So instead of k, you should append k%n elements only.