Depth-First Search (DFS) typically uses which data structure?

  • AQueue
  • BHash table
  • CStack
  • DHeap
Show answerHide answer

Correct answer C

DFS uses a stack (or recursion) to explore as deep as possible before backtracking.