Given a linked list of length N and an integer K , append the last K elements of a linked list to the front. Note that K can be greater than N.https://ide.codingblocks.com/s/621945
Not Passing All testcases
you have not consider few corner cases
like if k=1 and k>n your code will not work
if k>n you have to make k = k%n;
please can u correct my code i tried correcting but still its not submitting
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.