← All problems
Medium · Graphs

Pacific Atlantic Water Flow

Find cells whose water can drain downhill or level to both oceans.

Full problem and submission ↗
main.js

Console

Ready