it is not passing all the test cases .
please check
link to solution -
Linked list - k Append
Bro,
this is serious fun.
this is meant to be a linked list question, u doing it with array.
u are working hard for ur good, please try it out using Linked list data structure then post the same doubt.
We`ll be happy to help
In case u still need me to debugg it tell me in the comments belowww…