Pacific Atlantic Water Flow at ServiceNow
Medium60.6% acceptance
This problem has 75.0% frequency at ServiceNow.
Problem Description
There is an `m x n` rectangular island that borders both the **Pacific Ocean** and **Atlantic Ocean**. The **Pacific Ocean** touches the island's left and top edges, and the **Atlantic Ocean** touches the island's right and bottom edges. The island is partitioned into a grid of square cells. You ar...
Read full problem and hintsTopics
Also asked at 11 companies
More ServiceNow Questions
Trapping Rain WaterHardFind Minimum Diameter After Merging Two TreesHardContainer With Most WaterMediumFirst Missing PositiveHardGroup AnagramsMedium
View all ServiceNow questions