HF RL Explorer

Implement a command-line tool /app/query that builds an interval tree from a CSV file and answers…

Implement a command-line tool /app/query that builds an interval tree from a CSV file and answers…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Goal : Build a binary interval tree where each node stores an…

The task

**Goal**: Build a binary interval tree where each node stores an interval `[low, high]` (inclusive integers) and the maximum `high` value in its subtree. The tree must be balanced by median of intervals, not by count of nodes.

Part of ai-and/termgrade-bandcentral-gemma4-31b-bash.