sir what am i doing wrong also the case where k >n;what exactly happens in that case’
Https://ide.codingblocks.com/s/306563
Since after n appendings linked list return to its original state so after inputting k replace with k%length
Corrected Code
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.