Skip to content

Commit 844270c

Browse files
authored
Remove backslashes from is_palindrome.py (#10169)
@SaiHarshaK Fixes #10081 (comment)
1 parent ba828fe commit 844270c

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)