Problem bank
MediumGraphsNeetCode 150 · #84/150

Surrounded Regions

  1. 1
    Learn the pattern

    Grid or network traversal → BFS for shortest path, DFS for connectivity/shape. Track visited on push.

  2. 2
    Watch it run

    See this exact pattern animated step by step before you touch the keyboard.

    Open visualizer
  3. 3
    Solve it

    Solve it on LeetCode, then mark it solved here to keep your streak alive.

Pacific Atlantic Water FlowRotting Oranges