Question: What is the space complexity of DFS using recursion?
Options:
Correct Answer: O(V)
Solution:
The space complexity of DFS using recursion is O(V) due to the call stack that can go as deep as the number of vertices in the worst case.