From ecc07fb8a5987ad917e74c9ff6f0a0474f009335 Mon Sep 17 00:00:00 2001 From: Nishant Nirmal Date: Fri, 7 Feb 2020 17:54:51 +0530 Subject: [PATCH] Remove Elements from Linked List --- 0203-Remove-Linked-List-Elements.py | 1 + 1 file changed, 1 insertion(+) diff --git a/0203-Remove-Linked-List-Elements.py b/0203-Remove-Linked-List-Elements.py index 5572409..788e253 100644 --- a/0203-Remove-Linked-List-Elements.py +++ b/0203-Remove-Linked-List-Elements.py @@ -12,6 +12,7 @@ # self.val = x # self.next = None +#Time Complexity - O(n), Space Complexity - O(1) class Solution: def removeElements(self, head: ListNode, val: int) -> ListNode: zero_node = ListNode(0)