mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 12:16:14 -04:00
Update linked_list_II.py
This commit is contained in:
parent
5ea3de0fc9
commit
5eaeb66493
@ -62,7 +62,7 @@ class LinkedList:
|
||||
new_node.next = node.next
|
||||
node.next = new_node
|
||||
|
||||
def deleteAtIndex(self, index: int) -> None:
|
||||
def delete_at_index(self, index: int) -> None:
|
||||
|
||||
if self.len <= index or index < 0:
|
||||
return -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user