HF RL Explorer

Implement a command-line tool /app/rangeq that accepts intervals and queries, then outputs results in a…

Implement a command-line tool /app/rangeq that accepts intervals and queries, then outputs results in a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (read from stdin): - Each line is either an interval definition or a query . - An interval…

The task

**Input format** (read from stdin): - Each line is either an **interval definition** or a **query**. - An interval definition has the format: `+ start end label` where start and end are integers (possibly negative), and label is a non-empty string without spaces. The interval is INCLUSIVE on start, EXCLUSIVE on end.…

Part of ai-and/termgrade-environments.