int main() { FILE *f=fopen("input.txt","r"); if(f==NULL) { perror("Can't open file!\n"); return -1; } NodeT *root=createBinTree(f); AVLTree(root); root=insertNode(root,11); root=deleteNode(root,11); prettyPrint(root,0); return 0; }
int main() { AVLTree(); /* Constructing tree given in the above figure */ insertAVL(10); insertAVL(20); insertAVL(30); insertAVL(40); insertAVL(50); insertAVL(25); printAVL(); printf("%d\n",countAVL()); printf("%d\n",searchAVL(1)); return 0; }