Implement a command-line tool at /app/range query that supports three operations on a collection of integer…
Implement a command-line tool at /app/range query that supports three operations on a collection of integer…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). ADD start end Adds the inclusive interval start, end to the collection. start and end are integers, start ≤…
The task
ADD start end Adds the inclusive interval [start, end] to the collection. start and end are integers, start ≤ end. Multiple identical intervals may be added (they are treated as distinct).
Part of ai-and/termgrade-environments.