[Python3] beats 99.97%- Remove Nth node from list's end
\nclass Solution:\n    def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:\n        first = second = head\n        for _ in range(n):\n            f
```\nclass Solution:\n    def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:\n        first = second = head\n        for _ in range(n):\n            first = first.next\n            \n        if not first:\n            return head.next\n        while first.next:\n            first = first.next\n            second = second.next\n        \n        second.next = second.next.next\n        return head\n```
['Python', 'Python3']