mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Fix typo (#806)
This commit is contained in:
parent
3c40fda6a3
commit
c4d16820bc
@ -1,4 +1,4 @@
|
||||
# calculate palindromic length from center with incresmenting difference
|
||||
# calculate palindromic length from center with incrementing difference
|
||||
def palindromic_length( center, diff, string):
|
||||
if center-diff == -1 or center+diff == len(string) or string[center-diff] != string[center+diff] :
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user