treewithLeastDepth