Implement a command-line tool /app/rangeq that manages a collection of named integer intervals and answers…
Implement a command-line tool /app/rangeq that manages a collection of named integer intervals and answers…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal: Build a persistent interval store with a CLI that supports three operations: ADD, REMOVE, and QUERY…
The task
**Goal:** Build a persistent interval store with a CLI that supports three operations: ADD, REMOVE, and QUERY. The tool must handle many subtle edge cases involving interval boundaries, overlapping ranges, tie-breaking, and exact output formatting.
Part of ai-and/termgrade-environments.