Skip to content

Commit 3323dde

Browse files
author
Partho Biswas
committed
no message
1 parent 5d12d7d commit 3323dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algoexpert.io/python/Palindrome_Partitioning_Min_Cuts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def palindromePartitioningMinCuts(string):
4545
palindromes[i][j] = string[i] == string[j]
4646
else:
4747
palindromes[i][j] = string[i] == string[j] and palindromes[i + 1][j - 1]
48-
cuts = [float('-inf') for i in len(string)]
48+
cuts = [float('-inf') for i in string]
4949
for i in range(len(string)):
5050
if palindromes[0][i]:
5151
cuts[i] = 0

0 commit comments

Comments
 (0)