🤖depth-first search

🚧 under construction

data structuregraph ⟩ DFS

Depth-First Search (DFS)

visits a graph node and explores its child nodes or branches before proceeding to the next node. (going deep first before going wide)

  • a recursive algorithm that leverages the stack.

// code

Last updated