Skip to content

Commit e859a3d

Browse files
authored
Update sum-of-beauty-of-all-substrings.py
1 parent 2e213fd commit e859a3d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Python/sum-of-beauty-of-all-substrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ def beautySum(self, s):
1212
lookup = [0]*26
1313
for j in xrange(i, len(s)):
1414
lookup[ord(s[j])-ord('a')] += 1
15-
print min(x for x in lookup if x)
1615
result += max(lookup) - min(x for x in lookup if x)
1716
return result

0 commit comments

Comments
 (0)