Closed smichr closed 3 years ago
In first_lexical watch out for k that is too large:
first_lexical
elif k < min_max(q, n): -> elif k < min_max(q, n) or k > q - n + 1:
test:
assert first_lexical(20, 4, 18) is None
Done. Thanks!
In
first_lexical
watch out for k that is too large:test:
assert first_lexical(20, 4, 18) is None