Linked List k Append

Sample input-output when k is greater than n

you have to treat k>n as k%n
if n=5 and k=7 , k becomes k%n=2
so n=5 and k=2

1 Like

I hope your doubt is cleared . if yes don’t forget to mark it as resolved in my doubts section :smiley:

Thanks it worked for me