K-append LL question not so clear

It is given that k >= N as well, so do I need to take k as k % n? or should I simply return head if k >= n?

@Avi-Kasliwal-315786729062203 if k==n return head otherwise k=k%n
hope its clear if yes dont forget to hit like and mark resolved :smiley:

1 Like