2 test case not passing
Problem append k from last to front of linked list
Hello @naveengupta,
This is happening because you have missed a very important part of the question:
k >= n
Example:
5
1 2 3 4 5
6
Expected Output:
5 1 2 3 4
Your Output:
1 2 3 4 5
Hope, this would help.
Give a like, if you are satisfied.