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 hints

Topics

Also asked at 11 companies


More ServiceNow Questions

View all ServiceNow questions