Write a command-line tool /app/rangeq that answers interval-overlap queries efficiently. It reads a CSV file…
Write a command-line tool /app/rangeq that answers interval-overlap queries efficiently. It reads a CSV file…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: The tool is invoked as: /app/rangeq INTERVALS.csv where INTERVALS.csv is a UTF-8 CSV file…
The task
**Input contract:** The tool is invoked as: ``` /app/rangeq INTERVALS.csv ``` where `INTERVALS.csv` is a UTF-8 CSV file WITHOUT headers. Each row has exactly 3 columns: - `id`: a string (may contain any printable ASCII except comma, including spaces and quotes) - `start`: an integer - `end`: an integer
Part of ai-and/termgrade-environments.