add Vova`s list

This commit is contained in:
ada-dmitry
2023-05-09 17:49:42 +03:00
parent 31a9fdc3f7
commit 875630a713
7 changed files with 213 additions and 9 deletions
+20 -2
View File
@@ -2,6 +2,24 @@
#include <stdio.h>
#include "head.h"
int main(){
return 126;
int main(int argc, char *argv[]){
tree *root=NULL;
root = init_root(root, 65);
print_tree(root);
printf("\n");
root=del_node(root, 65);
print_tree(root);
printf("\n");
root = add_node(root, 70);
root = add_node(root, 66);
root = add_node(root, 68);
root = add_node(root, 71);
root = add_node(root, 67);
root = add_node(root, 72);
print_tree(root);
printf("\n");
root = del_node(root, 66);
print_tree(root);
printf("\n");
return 0;
}