Linked list k append


its not passing all test cases
please help

@gulatigarvita08 ans exists for k>=n also
if k=n then you have to print linklist as it is
if k>n you have to do k=k%n then solve normally as k is now less than n
hope its cleared if yes don’t forget to mark the doubt resolved and hit like :smiley:

1 Like

But where its given that we have to do k%n when k>n. Like how would we get to know about the same

@gulatigarvita08 yes its not mentioned (they should have sorry about that) .

1 Like