Question: A full binary tree is a binary tree with the leaves on the same level. Add a method in the BST class to return true

A full binary tree is a binary tree with the leaves on the
same level. Add a method in the BST class to return true if the tree is a full
binary tree. (Hint: The number of nodes in a full binary tree is 2depth -1.)
/** Returns true if the tree is a full binary tree */
boolean isFullBST(). Give answer in Java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!