Python Two Pointer solution with comments Easy to Understand
Please upvote once you get this :)\n\nclass Solution:\n    def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:\n        fast = head\n        slow = 
Please upvote once you get this :)\n```\nclass Solution:\n    def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:\n        fast = head\n        slow = head\n        # advance fast to nth position\n        for i in range(n):\n            fast = fast.next\n            \n        if not fast:\n            return head.next\n        # then advance both fast and slow now they are nth postions apart\n        # when fast gets to None, slow will be just before the item to be deleted\n        while fast.next:\n            slow = slow.next\n            fast = fast.next\n        # delete the node\n        slow.next = slow.next.next\n        return head\n```
['Two Pointers', 'Python', 'Python3']