Error in test cases

Pls help in identifying the error in my code

Hey @kunal81198 in order to tell your error, I would request you to share your code using ide.codingblocks.com

Hey @kunal81198, your code works perfectly fine , but you forgot to add a side case that what if K>N, in that case just update your K = K%N and start your append function. Hope this will help you :grinning:

Still 1 case not passing

Number of that test case is ? @kunal81198

Hey @kunal81198 try using this https://ide.codingblocks.com/s/321531. This might help you :smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.