not passing testcases
Ll k append problem
Check logic of your code again, take reference from here
Edge cases can be handled by doing this
if(k==n || k==0)
{
return head;
}
if(k>n){
k = k%n;
}
hey even after making those changes only one test case passes
here is the code
Check now ->
Passing all test cases
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.