#include #include #include #include #include typedef struct TREE{ BS_Node *root; } TREE; int main(int argc, char **argv){ srand(time(NULL)); TREE tree = {NULL}; for(int i=0; i <40; i++){ BSAddValue(&tree.root,(int)RandomFloat(0,100)); } BSPrintTree(&tree.root); BS_Node *found_node = BSSearchTree(&tree.root,53); if(found_node != NULL) { printf("53 found %d\n",found_node->value); } else { printf("53 not found\n"); } BSFreeTree(&tree.root); return 0; } /* Challanges * * balance the tree */