mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-08 18:38:03 +00:00
Update LL delete mid challenge (#112)
Update constraints and assumptions, solution, and test case.
This commit is contained in:
@@ -13,7 +13,7 @@ class TestDeleteNode(object):
|
||||
head = Node(2)
|
||||
linked_list = MyLinkedList(head)
|
||||
linked_list.delete_node(head)
|
||||
assert_equal(linked_list.get_all_data(), [])
|
||||
assert_equal(linked_list.get_all_data(), [None])
|
||||
|
||||
print('Test: Multiple nodes')
|
||||
linked_list = MyLinkedList(None)
|
||||
|
||||
Reference in New Issue
Block a user