/CodingChallenege-Pacific-Atlantic-Water-Flow

Given an m x n island with heights, determine the cells where rainwater can flow to both the Pacific and Atlantic oceans. Water can flow north, south, east, or west if neighboring cells are lower/equal. Output a 2D list of grid coordinates representing the cells.

Primary LanguageJavaScript

Stargazers