please do not copy from fentyessays.com and spicwriters.com 4. (20pts) The… please do not copy from fentyessays.com and spicwriters.com4.

please do not copy from fentyessays.com and spicwriters.com 4. (20pts) The… please do not copy from fentyessays.com and spicwriters.com4. (20pts) The balance factor of a node is the height of its left subtree minus the height of its right subtree, and a node with balance factor 1, 0, or -1 is considered balanced. A node with any other balance factor is considered unbalanced and requires rebalancing the tree. The balance factor is either stored directly at each node or computed from the heights of the subtrees. Write a Java Method that computes the balance factor for each subtrees and prints it out along with the tree structure. Computer Science Engineering & Technology Java Programming Share QuestionEmailCopy link