Depth-First Search (DFS) typically uses which data structure?
Show answer
Correct answer C
DFS uses a stack (or recursion) to explore as deep as possible before backtracking.
Correct answer C
DFS uses a stack (or recursion) to explore as deep as possible before backtracking.