HF RL Explorer

Implement a command-line tool rq that manages a collection of integer intervals and answers queries about…

Implement a command-line tool rq that manages a collection of integer intervals and answers queries about…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). rq supports exactly four subcommands. All input comes from stdin (one command per line), output goes to…

The task

`rq` supports exactly four subcommands. All input comes from stdin (one command per line), output goes to stdout. The tool maintains a set of intervals (inclusive start, inclusive end with start ≤ end). On startup the set is empty.

Part of ai-and/termgrade-environments.