Q199. What is the space complexity of Depth-first search?
✅ Correct Answer: D) O(bm)
Explanation: O(bm) is the space complexity where b is the branching factor and m is the maximum depth of the search tree.
Q199. What is the space complexity of Depth-first search?
✅ Correct Answer: D) O(bm)
Explanation: O(bm) is the space complexity where b is the branching factor and m is the maximum depth of the search tree.