solulubeta
Sign in
NeetCode 150 / Graphs
11.04 · Problem

Pacific Atlantic Water Flow

Medium Reverse flood fill from the borders 1 video LC 417 Pro

This problem is part of solulu Pro

An island's heights are given as an m × n grid. The Pacific touches the top and left edges, the Atlantic the bottom and right edges. Rain flows from a cell to a 4-directional neighbour whose height is less than or equal.…

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 83 of 150 · updated 2026-10-12