Skip to content

Commit b532a5b

Browse files
authored
Update palindromic-substrings.py
1 parent df2ac74 commit b532a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Python/palindromic-substrings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ def manacher(s):
2020
if i+P[i] > R:
2121
C, R = i, i+P[i]
2222
return P
23-
return sum((max_len+1)/2 for max_len in manacher(s))
23+
return sum((max_len+1)//2 for max_len in manacher(s))
2424

0 commit comments

Comments
 (0)