We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f20d91b + fcafa64 commit 4069208Copy full SHA for 4069208
1 file changed
source_code/intersection_trees/intersection_tree.py
@@ -148,7 +148,7 @@ def generate_interval(max_end: int = 1_000_000_000) -> Interval:
148
Returns
149
-------
150
Interval
151
- Tuple (start, end) such that end - start >= 1
+ Tuple (start, end) such that end - start > 1
152
153
Raises
154
------
@@ -159,7 +159,7 @@ def generate_interval(max_end: int = 1_000_000_000) -> Interval:
159
raise ValueError(f"max_end must be at least 2, got {max_end}")
160
161
start = random.randint(0, max_end - 2)
162
- end = random.randint(start + 1, max_end)
+ end = random.randint(start + 2, max_end)
163
return start, end
164
165
0 commit comments