Array
417. Pacific Atlantic Water Flow
Water flows from a cell to an equal-or-lower neighbour; the Pacific touches the top and left edges, the Atlantic the bottom and right. Find every cell from which water can reach both oceans.…
Loading…
Water flows from a cell to an equal-or-lower neighbour; the Pacific touches the top and left edges, the Atlantic the bottom and right. Find every cell from which water can reach both oceans.…
Loading…