30:00
Given the head of a linked list, remove the nth node from the end of the list and return its head.
The number of nodes is szszsz.
1≤sz≤301 \leq sz \leq 301≤sz≤30
0≤Node.val≤1000 \leq \text{Node.val} \leq 1000≤Node.val≤100
1≤n≤sz1 \leq n \leq sz1≤n≤sz
Init dummy, left=dummy, right=head
0
1
2
3
4
5