Google Interview Question

In a given binary tree, find the number of elements that lie in a given range.

Interview Answer

Anonymous

Aug 6, 2014

If it is binary SEARCH tree, just do in-order (if what to do sorted print) traversal and apply the condition.