Implement a command-line tool /app/pathfinder that reads a grid from stdin (text format described below)…
Implement a command-line tool /app/pathfinder that reads a grid from stdin (text format described below)…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Grid format (stdin): - First line: two positive integers rows cols separated by whitespace, with rows, cols <=…
The task
**Grid format (stdin):** - First line: two positive integers `rows cols` separated by whitespace, with `rows, cols <= 10000`. - Following `rows` lines: each line contains `cols` integers separated by whitespace. Each integer is in range [0, 255] representing the traversal cost of that cell. - The grid may contain…
Part of ai-and/termgrade-environments.