Skip to content

Commit

Permalink
Remove Elements from Linked List
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmalnishant645 authored Feb 7, 2020
1 parent 2b6527c commit ecc07fb
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 ecc07fb

Please sign in to comment.