Implement a command-line tool rangeq that reads a list of integer intervals from a file and supports two…
Implement a command-line tool rangeq that reads a list of integer intervals from a file and supports two…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: One interval per line as start,end where start and end are integers and start <= end …
The task
**Input file format:** One interval per line as `start,end` where `start` and `end` are integers and `start <= end`. Lines can have leading/trailing whitespace. Empty lines must be ignored. Lines starting with `#` are comments and must be ignored. The file may contain duplicate intervals; each duplicate must be…
Part of ai-and/termgrade-environments.