Skip to content

Commit 5120f6d

Browse files
committed
current tail next should point to new node
1 parent 2384c0f commit 5120f6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/chapter02/2.6 - Palindrome/miguel_2.6_soln.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def _append_node(self, n: Node) -> None:
5555
self.tail = self.head
5656
else:
5757
end = n
58+
self.tail.next = end
5859
self.tail = end
5960
self.size += 1
6061

0 commit comments

Comments
 (0)