Some cases of this cod eis giving MLE.What might be the reason?https://ide.codingblocks.com/s/671717

hi @riagoel3999 do k = k%n this will reduce no of iterations which are not useful
say k is 1000 and n is 5 then it doesnt matter to append it will be same

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.