Skip to content

Commit 3b8e49a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent bf994d7 commit 3b8e49a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dynamic_programming/better_palindrome_partitioning/palindrome_partitioning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def find_minimum_partitions(
4646
i = n - 1
4747
while i >= 0:
4848
start = parent[i] + 1 if parent[i] != -1 else 0
49-
partitions.append(s[start:i + 1])
49+
partitions.append(s[start : i + 1])
5050
if parent[i] == -1:
5151
break
5252
i = parent[i]
@@ -60,4 +60,4 @@ def find_minimum_partitions(
6060
cuts, partitions = find_minimum_partitions(s, return_partitions=True)
6161
print(f"Minimum cuts required: {cuts}")
6262
print("One possible palindrome partitioning:")
63-
print(" | ".join(partitions))
63+
print(" | ".join(partitions))

0 commit comments

Comments
 (0)