action:
template
int f(tnode
{ int n = 0, leftValue, rightValue;
if (t != NULL)
{
if (t ->left != NULL || t->right != NULL)
n++;
leftValue = f(t->left);
rightValue = f(t->right);
return n + leftValue + rightValue;
}
else
return 0;
}
Please provide a complete program if it makes sense.
