Help! My home work is to create a binary search tree with integers.
The program below print out inorder, preorder, postorder traversals. How do I code to get number of leaf nodes, number of nodes with one child, number of nodes with two child, max and min leaf nodes, height of tree and if the tree is balanced?
_____________________________________________________
#include <iostream>
using namespace std;
const int nil = 0;
class treenode_type ...