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 Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Build a binary interval tree where each node stores an interval low, high (inclusive integers) and the maximum…

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-environments.