HF RL Explorer

Write a command-line tool /usr/local/bin/topsort that reads a dependency graph from a file and outputs a…

Write a command-line tool /usr/local/bin/topsort that reads a dependency graph from a file and outputs a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - Each non-empty line is a rule: A < B meaning "A must come before B". - Tokens A and B are…

The task

**Input file format:** - Each non-empty line is a rule: `A < B` meaning "A must come before B". - Tokens `A` and `B` are non-empty strings of printable ASCII characters (no spaces, no tabs, no angle brackets). They are separated by a single space, then `<`, then a single space. - Lines can be indented with arbitrary…

Part of ai-and/termgrade-environments.