Question: Which of the following algorithms can be used to find the height of a binary tree?
Options:
Correct Answer: Both depth-first and breadth-first search
Solution:
Both depth-first search (DFS) and breadth-first search (BFS) can be used to find the height of a binary tree.