From 4c37e77f152576bdd3e5cdb507f1716a984a9267 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 11:38:04 +0000 Subject: [PATCH 1/2] Initial plan From a43ed9a1fc76abddb16ad7a72280ab162f71335d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 11:45:47 +0000 Subject: [PATCH 2/2] Fix interval generation bug in intersection_tree.py Co-authored-by: gjbex <4801336+gjbex@users.noreply.github.com> --- source_code/intersection_trees/intersection_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source_code/intersection_trees/intersection_tree.py b/source_code/intersection_trees/intersection_tree.py index 2b319c3..7f6f904 100644 --- a/source_code/intersection_trees/intersection_tree.py +++ b/source_code/intersection_trees/intersection_tree.py @@ -148,7 +148,7 @@ def generate_interval(max_end: int = 1_000_000_000) -> Interval: Returns ------- Interval - Tuple (start, end) such that end - start >= 1 + Tuple (start, end) such that end - start > 1 Raises ------ @@ -159,7 +159,7 @@ def generate_interval(max_end: int = 1_000_000_000) -> Interval: raise ValueError(f"max_end must be at least 2, got {max_end}") start = random.randint(0, max_end - 2) - end = random.randint(start + 1, max_end) + end = random.randint(start + 2, max_end) return start, end