I want to sum all the values in the leafs in a BST, and i cant get the leafs without running all the tree...:(
Thanks Guys, but its only for academic purposes... i didn't want to "pay" O(N) to get the sum of all leafs, but it seems thats the only way.