-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
40 lines (25 loc) · 695 Bytes
/
main.c
File metadata and controls
40 lines (25 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "/home/rafflezs/Documentos/DSTLib/DataType/Tree/binary.h"
//#include "/home/rafflezs/Documentos/DSTLib/DataType/List/simply.h"
int main(){
struct node* r = create_tree();
/* List* a = create_list();
push_back(a, 10);
push_back(a, 20);
push_back(a, 30);
push_back(a, 40);
show_list(a);
Node* temp = a->prox; */
insert(&r, 10);
insert(&r, 12);
insert(&r, 13);
insert(&r, 1);
insert(&r, 2);
printf("\nPre order\n");
in_order_print(&r);
struct node* ta = find_largest_element(&r);
printf("%i", ta->value);
remove_smallest_element(&r);
printf("\nPre order\n");
in_order_print(&r);
return 0;
}