It\'s been a while from those school years. Got a job as IT specialist at a hospital. Trying to move to do some actual programming now. I\'m working on binary trees now, a
Wouldn't this work?
return ( ( Math.abs( size( root.left ) - size( root.right ) ) < 2 );
Any unbalanced tree would always fail this.