https://gateoverflow.in/18749/tifr2010-b-26
1.In this question, if 'a' min element and 'b' is max element in given tree then "n-1" additions will be required, then how "logn" additions ?
2. We can do it by finding inorder traversal in O(n) time but above solution from link is optimal i guess as its taking O(logn) but i am not getting it.
Can someone explain both points 1 and 2.