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
Well, you need a way to determine the heights of left and right, and if left and right are balanced.
And I'd just return height(node->left) == height(node->right);
return height(node->left) == height(node->right);
As to writing a height function, read: Understanding recursion
height