Go
\nfunc removeNthFromEnd(head *ListNode, n int) *ListNode {    \n    dummy := &ListNode{Next: head}\n    slow, fast := dummy, dummy\n    \n    for i := 0; i <= n
```\nfunc removeNthFromEnd(head *ListNode, n int) *ListNode {    \n    dummy := &ListNode{Next: head}\n    slow, fast := dummy, dummy\n    \n    for i := 0; i <= n; i++ {\n        fast = fast.Next\n    }\n    \n    for fast != nil {\n        fast = fast.Next\n        slow = slow.Next\n    }\n    \n    slow.Next = slow.Next.Next\n    \n    return dummy.Next\n}\n```
['Go']