Sir, i have doubt in question

what will be happened, when the value of ‘K’ is greater than the ‘N’. Can you give me an example?

hello @chandreshmaurya

for k==n , u will get same list right?
so for k=n+1 is nothing but equivalent to k=1
similary k=n+2 is nothing but equivalent to k=2

so in general.
equivalent k = given k %n

ohkay sir, i got it.

Sir, please help me to find out my errors in my code -> https://ide.codingblocks.com/s/464823

check now->

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.