Skip to content

Minimum Number of Visited Cells in a Grid

A Hard coding interview problem in the Graphs pattern.

Likely pattern

Graphs

BFS, DFS, union find and topological order over nodes and edges.

Recognition cue: Grids of cells, connectivity, islands, dependencies or prerequisites.

Do not confuse it with

Topics

  • Array
  • Dynamic Programming
  • Stack
  • Breadth-First Search
  • Union Find
  • Heap (Priority Queue)
  • Matrix
  • Monotonic Stack
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard