I think my code’s logic is correct and it passes for 2 test cases but shows TLE for others.
Linked List K-append
Hey @div_yanshu07
ll k;
cin>>k;
k=k%n;//added this
reverse(head,k);
display(head);
Do this and it will work fine
Mentioned in question ““Note that K can be greater than N.””
Also do hit the like button and mark this as resolved 