diff options
Diffstat (limited to 'algorithms/input_kind.py')
| -rw-r--r-- | algorithms/input_kind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/algorithms/input_kind.py b/algorithms/input_kind.py index b91d298..68a93d8 100644 --- a/algorithms/input_kind.py +++ b/algorithms/input_kind.py @@ -30,4 +30,4 @@ def gen_input_for_sorting(n, case=InputKind.AVERAGE): return _gen_input_from(sample(range(n), n)) if case is InputKind.WORST: return _gen_input_from(range(n - 1, -1, -1)) - raise NotImplementedError("invalid input kind: " + str(case)) + raise NotImplementedError(f"invalid input kind: {case}") |
