Pattern3 visualizers
Graph Matrix DFS Pattern Visualizers
The Graph Matrix DFS pattern is a recurring algorithmic shape that appears across coding interviews and competitive problems. Use it when the problem geometry matches its trigger conditions — recognizing the pattern collapses what looks like a hard problem into a familiar template. These visualizers trace Graph Matrix DFS step-by-step on classics such as Max Area of Island, Number of Islands, Pacific Atlantic Water Flow, so you can internalize the moves before you ever need them under pressure.
Graphs
Max Area of Island
Scan a grid and launch recursive DFS traversals to sink sub-islands and measure their cumulative area.
Open visualizer →
Graphs
Number of Islands
Identify and count disconnected land masses in a grid using recursive DFS flood filling.
Open visualizer →
Graphs
Pacific Atlantic Water Flow
Multi-source DFS/BFS to find cells that can reach both the Pacific and Atlantic oceans.
Open visualizer →