HF RL Explorer

Create a command-line tool /app/irange that builds an interval tree from a sorted CSV of integer intervals…

Create a command-line tool /app/irange that builds an interval tree from a sorted CSV of integer intervals…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool reads an intervals CSV file and queries from either a file or stdin. - Intervals…

The task

**Input contract:** - The tool reads an intervals CSV file and queries from either a file or stdin. - Intervals CSV path: first positional argument. - Queries source: second positional argument, or `-` for stdin. - The intervals CSV has 2 columns: `start,end` (integers, inclusive on both ends). No header row. Sorted…

Part of ai-and/termgrade-environments.