Nth node from the end of a linked list
Return (or remove) the n-th node from the end of a singly linked list in one pass, moving a lead pointer n steps ahead of a trailing one.
No answer yet. Write the first one; the best answer gets endorsed.
Return (or remove) the n-th node from the end of a singly linked list in one pass, moving a lead pointer n steps ahead of a trailing one.