packageleetcode// ListNode definetypeListNode=structures.ListNode/** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */// 解法一funcremoveNthFromEnd(head*ListNode,nint)*ListNode{dummyHead:=&ListNode{Next:head}preSlow,slow,fast:=dummyHead,head,he...