Statement
Given the head of a singly linked list and an integer n, remove the nth node from the end of the list and return the head of the modified list.
Constraints:
The number of nodes in the list is
. Node.valuen
Given the head of a singly linked list and an integer n, remove the nth node from the end of the list and return the head of the modified list.
Constraints:
The number of nodes in the list is
Node.value
n
Given the head of a singly linked list and an integer n, remove the nth node from the end of the list and return the head of the modified list.
Constraints:
The number of nodes in the list is
Node.value
n