- /*
- * A tree with at most b nodes can be at most depth
- * maxdepth-1. A tree with more than b but at most c can
- * be at most maxdepth. Therefore, for each tree size
- * between b and c, we might need to adjust maxdepth+1
- * nodes.
- */
- tmp = min(c, nodecount);
- ret += (tmp - b) * maxdepth;
-