HF RL Explorer

Implement a command-line tool /app/rangeq that maintains an in-memory interval tree and answers queries. The…

Implement a command-line tool /app/rangeq that maintains an in-memory interval tree and answers queries. The…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The output must be a single JSON object with a key "results" whose value is an array. For each "query" or…

The task

The output must be a single JSON object with a key `"results"` whose value is an array. For each `"query"` or `"stabbing"` operation in the input, append exactly one element to this array — the JSON array of matching intervals (even if empty). For `"add"`, `"delete"`, and `"clear"`, append nothing. The output JSON…

Part of ai-and/termgrade-environments.