Create a command-line tool /app/irange that manages a collection of named integer intervals and answers…
Create a command-line tool /app/irange that manages a collection of named integer intervals and answers…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). ADD name start end Add a closed interval start, end (both inclusive) with the given name. start and end are…
The task
**ADD name start end** Add a closed interval `[start, end]` (both inclusive) with the given name. `start` and `end` are integers; `start <= end` always holds for valid input. If a named interval already exists, ADD updates it. Names are case-sensitive, may contain spaces and any printable ASCII characters except…
Part of ai-and/termgrade-environments.