Why this one is showing error?
Note that K can be greater than N.
u need to calculate k as k%n
and call the function to append k values only if k!= 0
Smjh nhi aaya Mam k%n ka concept and for k!=0 , I think I should directly return the value.
code link which is well commenteed
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.
