What should we do when k>length . I had returned but I think these 3 test cases has something to do when k>n.
3 test cases going worng
since after n appendings the list becomes equal to initial list after taking k as input replace k with k%n
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.