Update linked_list_II.py

This commit is contained in:
marina 2023-08-02 16:41:10 -07:00 committed by GitHub
parent 5ea3de0fc9
commit 5eaeb66493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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