...

/

Pacific Atlantic Water Flow

Pacific Atlantic Water Flow

Try to solve the Pacific Atlantic Water Flow problem.

Statement

Imagine an island with a rectangular shape that touches both the Pacific and Atlantic oceans. The northern and western sides meet the Pacific, while the southern and eastern sides touch the Atlantic. This island is divided into square cells.

To depict the height above sea level of each cell, we use an integer matrix, heights, of size (m×n) ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy