Remove Nth Node From End of List
Given a linked list, remove the n-th node from the end of list and return its head.
Example:
Note:
Given n will always be valid.
Follow up:
Could you do this in one pass?
Last updated
Given a linked list, remove the n-th node from the end of list and return its head.
Example:
Note:
Given n will always be valid.
Follow up:
Could you do this in one pass?
Last updated