HF RL Explorer

Implement a command-line tool /app/rangeq that maintains an in-memory set of closed intervals of integers…

Implement a command-line tool /app/rangeq that maintains an in-memory set of closed intervals of integers…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Sorting rules for QUERY and INTERSECT output: Output must be sorted primarily by the interval's lower bound…

The task

**Sorting rules for QUERY and INTERSECT output:** Output must be sorted primarily by the interval's lower bound ascending. For intervals with the same lower bound, sort by upper bound ascending. For intervals with identical lower and upper bounds (duplicates), they must appear in the order they were originally added…

Part of ai-and/termgrade-environments.