We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 593b735 + 083ce97 commit ab1cbe1Copy full SHA for ab1cbe1
1 file changed
linked_lists/linked_list.py
@@ -52,7 +52,8 @@ def delete(self, value):
52
prev.set_next(current.get_next())
53
else:
54
self.head_ = current.get_next()
55
- prev = current
+ else
56
+ prev = current
57
current = current.get_next()
58
59
# Pushes an item on the front of the list.
0 commit comments