CPP Linked List - kth Node

What is actually happening by runner technique, is it optimizing the code or something else??

yes like else u would have iterated multiple times to find the kth node from end
or else u would have first calculated the length of LL and then done some manipulations

so this is a efficient in one run u find the answer

ya I understood ,
Thank you so much

1 Like

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.