Computer Science II Please complete the psudeo code for the
Computer Science II: (Please complete the psudeo code for the following)
Solution
Boolean hasFullShape(tree t)
{
if(t->left!=NULL && t->right!=NULL)
return true;
else
return false;
}
Here we are checking if left and right sub nodes are empty or not.If anyone is empty it means that the tree in not full,
hence we are returning false
And if both are available then we will return true

