Complexity of Q3?

How complexity of Q3 is O(n)?As per the calculations ,it should be O(n*log n)

@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)

@TusHar-AroRa-2294450460870717,
Just take a small perfect binary tree and verify.