WHY IS MY CODE NOT GETTING ACCEPTED
LINKED LIST K APPEND
@The_sun_is_rising you are not handling the case when k>n properly.If k=n, the their is no need to change the list, is k=n+2, it means appended n elements (it will cause no change) then we will append 2 elements. So for k>n answer would change.
after taking input of k, make k=k%n.
If this resolves your doubt mark it as resolved.
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.