We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b33acc2 commit 42c240dCopy full SHA for 42c240d
scan.py
@@ -14,6 +14,8 @@
14
15
16
def split_list(total: int, num_splits: int) -> list:
17
+ if num_splits <= 1:
18
+ return [[0, total]]
19
split_size = total // num_splits
20
split_list = [[i * split_size + 1, (i + 1) * split_size]
21
for i in range(num_splits - 1)]
0 commit comments