mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update remove_elements.py
This commit is contained in:
parent
2c1c7c0ff7
commit
57ddd32859
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
def remove_elements(head, val):
|
def remove_elements(head, val):
|
||||||
|
|
||||||
sentinel = ListNode(0)
|
sentinel = Node(0)
|
||||||
sentinel.next = head
|
sentinel.next = head
|
||||||
prev, current = sentinel, head
|
prev, current = sentinel, head
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user