We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d13b59e commit 69d651dCopy full SHA for 69d651d
Sprint-2/implement_linked_list/linked_list.py
@@ -12,7 +12,6 @@ def __init__(self):
12
13
def push_head(self, value):
14
new_node = Node(value)
15
-
16
if self.head is None:
17
self.head = new_node
18
self.tail = new_node
@@ -24,6 +23,7 @@ def push_head(self, value):
24
23
return new_node
25
26
def pop_tail(self):
+
27
if self.tail is None:
28
raise IndexError("pop_tail from empty linked list")
29
0 commit comments