Skip to content

Commit a89e5d8

Browse files
committed
update comments
1 parent d815b62 commit a89e5d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ def is_palindrome_constant_space(ll: LinkedList) -> bool:
173173
while n is not None:
174174
temp_ll2.append_to_tail(n) # second half
175175
n = n.next
176+
# reverse second half
176177
temp_ll2.reverse()
177-
# compare temp_ll and ll
178+
# compare temp_ll1 and temp_ll2
178179
n1 = temp_ll1.head
179180
n2 = temp_ll2.head
180181
for _ in range(temp_ll2.size):

0 commit comments

Comments
 (0)