Create a command-line tool /app/rq that maintains an in-memory collection of integer intervals and supports…
Create a command-line tool /app/rq that maintains an in-memory collection of integer intervals and supports…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format (stdin): Each line is a command starting with…
The task
**Input format (stdin):** Each line is a command starting with one of these keywords, followed by arguments separated by single spaces: - `ADD start end` — add the inclusive interval [start, end] to the collection. Both integers, start ≤ end. If an identical interval already exists, do nothing (no duplicate). -…