Given an m x n grid of non-negative integers representing the height of each unit cell, find all coordinates where water can flow to both the Pacific and Atlantic oceans. Water flows from cells to…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.