aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/algorithms/input_kind.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 16:54:00 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 16:54:00 +0200
commitc663acc4ed8e7d2a9e4389a3e8f790d60a070a0c (patch)
treed37fca42651fad8b0c55984a8796881ce8243777 /algorithms/input_kind.py
parentadd .git-blame-ignore-revs (diff)
downloadsorting-algorithms-c663acc4ed8e7d2a9e4389a3e8f790d60a070a0c.tar.gz
sorting-algorithms-c663acc4ed8e7d2a9e4389a3e8f790d60a070a0c.zip
use format strings
Diffstat (limited to 'algorithms/input_kind.py')
-rw-r--r--algorithms/input_kind.py2
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}")