HF RL Explorer

Implement a command-line tool /app/toposort that reads a dependency specification from stdin, performs a…

Implement a command-line tool /app/toposort that reads a dependency specification from stdin, performs a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One line per node declaration. - Each line: nodeName <optional whitespace : <optional…

The task

**Input format** (stdin): - One line per node declaration. - Each line: `nodeName <optional whitespace> : <optional whitespace> dependency1 dependency2 ...` - The colon `:` separates the node name from its dependencies. - Node names are non-empty strings of printable ASCII characters except `:` and whitespace. -…

Part of ai-and/termgrade-environments.