Skip to content

Commit

Permalink
Fix typo (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erfaniaa authored May 14, 2019
1 parent 3c40fda commit c4d1682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strings/manacher.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c4d1682

Please sign in to comment.