Farthest from Land

The above is the map of a new planet. The blue cells are water, the green cells are land.

In this planet, people may only move right, left, up or down.

What is the farthest distance from land a person on this planet could be in?

1 2 3 4

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Jonathan Quarrie
Sep 14, 2017

Nice job! This is an example of an application of breadth-first search

Agnishom Chattopadhyay - 3 years, 8 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...