How do you find the height of a multi-way tree? A binary tree looks something like this...
int height(node *root) {
if (root == NULL)
return 0;
else
return max(height(root->left), height(root->right)) + 1;
}
I cant figure it for multi-way.