Write a command-line tool at /app/topsort that reads a dependency specification from stdin and determines a…
Write a command-line tool at /app/topsort that reads a dependency specification from stdin and determines a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One dependency per line. - Each line has the format: TARGET: DEP1 DEP2 ... DEPN -…
The task
**Input format (stdin):** - One dependency per line. - Each line has the format: `TARGET: DEP1 DEP2 ... DEPN` - `TARGET` is a non-empty string of printable ASCII characters (no colons, no leading/trailing whitespace within the token). - Dependencies are separated by single spaces after the colon-space. - A target…
Part of ai-and/termgrade-environments.