Skip to content

Commit 3ae54e7

Browse files
cclausssedatguzelsemme
authored andcommitted
Remove backslashes from is_palindrome.py (TheAlgorithms#10169)
@SaiHarshaK Fixes TheAlgorithms#10081 (comment)
1 parent f929924 commit 3ae54e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: data_structures/linked_list/is_palindrome.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,11 @@ def is_palindrome_dict(head: ListNode | None) -> bool:
147147
>>> is_palindrome_dict(ListNode(1, ListNode(2, ListNode(2, ListNode(1)))))
148148
True
149149
150-
>>> is_palindrome_dict(\
151-
ListNode(\
152-
1, ListNode(2, ListNode(1, ListNode(3, ListNode(2, ListNode(1)))))))
150+
>>> is_palindrome_dict(
151+
... ListNode(
152+
... 1, ListNode(2, ListNode(1, ListNode(3, ListNode(2, ListNode(1)))))
153+
... )
154+
... )
153155
False
154156
"""
155157
if not head or not head.next_node:

0 commit comments

Comments
 (0)