BST Assignment 2:
BINARY SEARCH TREE: 1.Implement binary search tree (BST) to perform a following operation: i) BST - copy and mirror image of BST, Counting leaf node , non leaf node , total nodes //assignment 2: #include < stdio.h > #include < stdlib.h > typedef struct node { int data ; struct node * left , * right ; } BST ; BST * create (); BST * insert ( BST * , int ); BST * preorder ( BST * ); int totalnodes ( BST * ); int leafnodes ( BST * ); int nonleafnodes ( BST * ); BST * mirrorimage ( BST * ); static int count = 0 ; int main () { int ch , x , m ; BST * root = NULL , * ans , * mirror ; do { printf ( "\n 1:create \n 2:insert \n 3:preorder " ); print...