Skip to content

Commit

Permalink
Merge pull request nirmalnishant645#20 from nirmalnishant645/problem
Browse files Browse the repository at this point in the history
Remove Elements from Linked List
  • Loading branch information
anantkaushik authored Feb 10, 2020
2 parents 28abd99 + ecc07fb commit 5b9efac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 0203-Remove-Linked-List-Elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b9efac

Please sign in to comment.