Given a JSON file containing nodes and their dependencies, produce a topological ordering of all nodes. If…
Given a JSON file containing nodes and their dependencies, produce a topological ordering of all nodes. If…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input: A single JSON file path as a command-line argument. The file contains an object with one key "nodes"…
The task
Input: A single JSON file path as a command-line argument. The file contains an object with one key "nodes", whose value is an array of node objects. Each node object has: - "id": a non-empty string (any UTF-8 characters except null byte) - "deps": an array of id strings (may be empty, may contain duplicates, may…
Part of ai-and/termgrade-environments.