Use the provided interface BinaryTreeADT<T> and class BinaryTree<T> (given at end of the lecture), implemente the following the methods WITHOUT using recursion.

1. [15pts] Method leavesCount(root)to count how many leave nodes the tree starting at root has.

2. [45pts] In order, pre order and post order tree traversals.

3. [40pts] insert() and delete() methods.

Note: You have to implement those methods without using recursion. Solutions similar to those provided in the lecture will result in 0 points.

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.