HF RL Explorer

Implement a command-line tool /root/intervaldb that builds an in-memory interval tree and supports three…

Implement a command-line tool /root/intervaldb that builds an in-memory interval tree and supports three…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: A single JSON object on stdin with exactly these keys: - "command" : string, one of "insert" …

The task

**Input contract:** A single JSON object on stdin with exactly these keys: - `"command"`: string, one of `"insert"`, `"delete"`, `"query"`. - `"low"`: integer. - `"high"`: integer.

Part of ai-and/termgrade-environments.