HF RL Explorer

Write a command-line tool that reads a dependency specification from stdin and outputs a valid topological…

Write a command-line tool that reads a dependency specification from stdin and outputs a valid topological…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): One dependency per line, each line is A - B meaning "A depends on B" (A must come…

The task

**Input format (stdin):** One dependency per line, each line is `A -> B` meaning "A depends on B" (A must come AFTER B in the output). Whitespace around `->` is exactly one space on each side. Nodes are non-empty strings of printable ASCII characters (codes 32-126) excluding space. There can be duplicate edges,…

Part of ai-and/termgrade-environments.