Question: What is the space complexity of 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 used for recursion or explicit stack storage.