K Append LinkedList

testcases failing

@RULEREMPIRES Lemme review bro!

@RULEREMPIRES Hi bro, your code was correct, but you have two handle two test case namely:-

  • if n == size then simply return
  • n > N, n = n % N
    read this carefully for second edge case Note that K can be greater than N.
    Here is ya corrected code
    https://ide.codingblocks.com/s/283295
    Also don’t forget to mark ya query resolved and rate full!
    Happy coding!