Find a path from S to T that maximizes the minimum distance to the cat C.
Unlock detailed company stats for this questionUpgrade
A mouse is trying to get from its starting position S to a treat T, moving only on land cells and staying as far away as possible from the cat C. Assume a square grid of size N x N, only horizontal and vertical moves, impassable water cells, and cells S, T and C. Find a path from S to T for which the minimal distance to C along the path is maximal. Use the L1 (Manhattan) distance, the sum of the horizontal and vertical distances.
Community answers
No answers contributed by the community yet.
Related questions
Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.Find the path between two nodes that minimizes the maximum edge security level.Place K servers in data centers to maximize the minimum distance between them.Related courses

Course

Course
Course
