Create a command-line tool /app/rq that maintains a collection of named intervals and supports three…
Create a command-line tool /app/rq that maintains a collection of named intervals and supports three…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). ADD : Adds a named interval start, end) with integer coordinates. If an interval with the same name already…
The task
**ADD**: Adds a named interval [start, end) with integer coordinates. If an interval with the same name already exists, reject the addition and output an error message. Start and end are integers, start < end. Names are non-empty alphanumeric strings (a-z, A-Z, 0-9).
Part of ai-and/termgrade-environments.