Skip to content

Commit 5422b79

Browse files
authored
Update number-of-wonderful-substrings.py
1 parent 4d2f054 commit 5422b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/number-of-wonderful-substrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def wonderfulSubstrings(self, word):
88
:rtype: int
99
"""
1010
ALPHABET_SIZE = 10
11-
count = [0]*(2**ALPHABET_SIZE+1)
11+
count = [0]*(2**ALPHABET_SIZE)
1212
count[0] = 1
1313
result = curr = 0
1414
for c in word:

0 commit comments

Comments
 (0)