---
title: "Discussion on \"LeetCode 417: Pacific Atlantic Water Flow — Step-by-Step Visual Trace\" | Hashnode"
description: "Discussion on \"LeetCode 417: Pacific Atlantic Water Flow — Step-by-Step Visual Trace\". Find all cells in a 2D matrix where rainwater can flow to both the Pacific Ocean (left and top edges) and Atlantic Ocean (right and bottom edges), where water flows from higher or equal height cells to lower or equal height cells."
url: "https://hashnode.com/posts/pacific-atlantic-water-flow-visualization/69d7d26acbde7a930d4aaee6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 417: Pacific Atlantic Water Flow — Step-by-Step Visual Trace](https://blog.tracelit.dev/pacific-atlantic-water-flow-visualization?utm_source=hashnode&utm_medium=feed)

Find all cells in a 2D matrix where rainwater can flow to both the Pacific Ocean (left and top edges) and Atlantic Ocean (right and bottom edges), where water flows from higher or equal height cells to lower or equal height cells.

Apr 9 · 2 min read · blog.tracelit.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[tracelit](https://hashnode.com/@tracelit)

@tracelit

  
[View profile](https://hashnode.com/@tracelit)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
