Cross Before the Flood

Hard · Topological Sort & Shortest Paths · about 35 min

A park is a grid grid of stepping stones with r rows and c columns, where grid[i][j] is the height of a stone.

Hard problems are part of TuringPath Pro. See plans.

Learn the pattern first: the Topological Sort & Shortest Paths lesson.

More Topological Sort & Shortest Paths problems