Implement a Python CLI tool /app/rangeq that reads a JSON file describing intervals with associated values…
Implement a Python CLI tool /app/rangeq that reads a JSON file describing intervals with associated values…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format (JSON): - An object with key "intervals" mapping to an array of objects. - Each object…
The task
**Input file format** (JSON): - An object with key `"intervals"` mapping to an array of objects. - Each object has: - `"start"`: integer (can be negative) - `"end"`: integer (can be negative, may be less than, equal to, or greater than start) - `"val"`: any JSON value (string, number, boolean, null, object, array) -…
Part of ai-and/termgrade-environments.