From f4ce3af7904dd3cf11ca35ad7f23a04c063e0453 Mon Sep 17 00:00:00 2001 From: kr820js Date: Fri, 26 Apr 2024 12:10:25 +0200 Subject: [PATCH] submit2 --- a3/binary_search_tree.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/a3/binary_search_tree.c b/a3/binary_search_tree.c index 2959014..6f85c24 100644 --- a/a3/binary_search_tree.c +++ b/a3/binary_search_tree.c @@ -2,7 +2,11 @@ #include #include #include "binary_search_tree.h" - +node_t *build_tree(int *, size_t ); +void add_dereva(node_t* , int ); +void free_tree(node_t *); +int *sorted_data(node_t *); +int count_size(node_t *); node_t *build_tree(int *tree_data, size_t tree_data_len){ node_t* first=malloc(sizeof(node_t)); @@ -10,7 +14,7 @@ node_t *build_tree(int *tree_data, size_t tree_data_len){ first->right=NULL; first->left=NULL; - for(int i=1; i