Google News
logo
Algorithm - Quiz(MCQ)
In what time complexity can we find the diameter of a binary tree optimally?
A)
O(V)
B)
O(E)
C)
O(V + E)
D)
O(V * log E)

Correct Answer :   O(V + E)

Advertisement