- Source : Link
- Author : Han
- Date : 2022-02-09
Problems
Given the head of a linked list, remove the nth node from the end of the list and return its head.
Example 1:

1 | |
Example 2:
1 | |
Example 3:
1 | |
Solution
1 | |
Given the head of a linked list, remove the nth node from the end of the list and return its head.
Example 1:

1 | |
Example 2:
1 | |
Example 3:
1 | |
1 | |