AlgoViz

Matrix DFS

medium 20 min

A 2D grid is a graph in disguise: every cell is a node and its up, down, left and right neighbours are its edges.