Skip to content

Commit 1640999

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backtracking/all_permutations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def generate_all_permutations(sequence: list[int | str]) -> None:
1919
ValueError: Input sequence too long (max 8 elements).
2020
"""
2121
if len(sequence) > MAX_SEQUENCE_LENGTH:
22-
raise ValueError(f"Input sequence too long (max {MAX_SEQUENCE_LENGTH} elements).")
22+
raise ValueError(
23+
f"Input sequence too long (max {MAX_SEQUENCE_LENGTH} elements)."
24+
)
2325
create_state_space_tree(sequence, [], 0, [0 for i in range(len(sequence))])
2426

2527

0 commit comments

Comments
 (0)