Merge pull request #252 from alouhaha/patch-1
Update singly_linked_list.py
This commit is contained in:
commit
0c71e0e676
@ -83,7 +83,7 @@ class SinglyLinkedList:
|
||||
current = current._next
|
||||
if not current: # node not in the list
|
||||
return
|
||||
current._next = None
|
||||
current._next = node._next
|
||||
|
||||
def delete_by_value(self, value: int):
|
||||
if not self._head or not value:
|
||||
|
Loading…
Reference in New Issue
Block a user