Question: What is the worst-case time complexity of the depth-first search (DFS) algorithm on a binary tree?
Options:
Correct Answer: O(n)
Solution:
The worst-case time complexity of depth-first search (DFS) on a binary tree is O(n), where n is the number of nodes in the tree.