HF RL Explorer

Implement a command-line tool /root/range query.py that builds an interval tree from a sorted list of…

Implement a command-line tool /root/range query.py that builds an interval tree from a sorted list of…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: The script reads a single JSON object from stdin with these keys: - intervals : array of intervals…

The task

**Input format:** The script reads a single JSON object from stdin with these keys: - `intervals`: array of intervals `[start, end]` where start and end are integers, start < end. The array is guaranteed to be sorted by start ascending and intervals are guaranteed to be non-overlapping. May be empty. - `queries`:…

Part of ai-and/termgrade-environments.