Skip to content

Count Visited Nodes in a Directed Graph

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

  • Dynamic Programming
  • Graph
  • Memoization
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard