How complexity of Q3 is O(n)?As per the calculations ,it should be O(n*log n)
Complexity of Q3?
@TusHar-AroRa-2294450460870717,
Which question are you talking about, Q3 is about BST. Copy paste the qn here.
For a perfect binary tree of height h and n nodes the sum of heights of all the nodes is:
O(hh) O(h) O(nn) O(n)