Grid path from start to target, then the path farthest from a cat
An N x N grid has a start cell S, a target cell T, water cells and land cells. You move one step up, down, left or right and can never enter water.
- Decide whether you can get from
StoT. - Now a mouse starts at
S, the cheese is atT, and a cat sits still at cellC. The safety of a path is the smallest distance between the cat and any cell on the path. Find the path fromStoTwhose safety is as large as possible and return that safety.
No answer yet. Write the first one; the best answer gets endorsed.
