Practice
/

Pacific Atlantic Water Flow

Pacific Atlantic Water Flow

Given a matrix of heights, find all cells from which water can flow to both the Pacific and Atlantic oceans.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.