mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-06-19 12:24:11 -04:00
Update remove_elements.py
This commit is contained in:
parent
2c1c7c0ff7
commit
57ddd32859
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue