Given a linked list, remove the nth node from the end of list and return its head.
For example,
Note:
Given n will always be valid.
Try to do this in one pass.
解法1: Two pointers, One Pass, O(N) Time
头node不确定,上dummy node大法。然后用双指针向前移动,找到Nth node的前一个node,删除后返回dummy->next
C++
Java