Create a command-line tool /app/topsort that reads a dependency specification from stdin (or from a file…
Create a command-line tool /app/topsort that reads a dependency specification from stdin (or from a file…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - Each non-empty, non-comment line defines one dependency. - Lines starting with are comments…
The task
**Input format:** - Each non-empty, non-comment line defines one dependency. - Lines starting with `#` are comments and must be ignored. - An empty line (or whitespace-only line) must be ignored. - A dependency line has the format: `ITEM: DEP1 DEP2 ... DEPn` - `ITEM` and each `DEP` are non-empty strings containing…
Part of ai-and/termgrade-environments.