Question: What is the space complexity of Depth-First Search (DFS) in the worst case?
Options:
Correct Answer: O(V)
Solution:
The space complexity of DFS in the worst case is O(V) due to the stack space used for recursion or the explicit stack.