Implement a command-line tool /app/rangequery that maintains an in-memory collection of integer intervals…
Implement a command-line tool /app/rangequery that maintains an in-memory collection of integer intervals…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The input file is an ASCII or UTF-8 text file with one command per line. - Lines are…
The task
**Input contract:** - The input file is an ASCII or UTF-8 text file with one command per line. - Lines are terminated by LF (`\n`). The last line may or may not have a trailing newline. - Empty lines and lines containing only whitespace must be skipped silently. - Comments start with `#` anywhere on a line;…
Part of ai-and/termgrade-environments.