Remove Nth Node From End of List
Remove the nth node from the end of a singly linked list in one pass. The visual uses two pointers with a fixed gap that slide along the list until the node before the target is found and then unlinks it.
Remove the nth node from the end of a singly linked list in one pass. The visual uses two pointers with a fixed gap that slide along the list until the node before the target is found and then unlinks it.