test
This commit is contained in:
parent
68e5a47eb3
commit
046d5da94d
@ -1,3 +1,21 @@
|
|||||||
|
#ifndef BINARY_SEARCH_TREE_H
|
||||||
|
#define BINARY_SEARCH_TREE_H
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
typedef struct node node_t;
|
||||||
|
|
||||||
|
struct node {
|
||||||
|
node_t *right;
|
||||||
|
node_t *left;
|
||||||
|
int data;
|
||||||
|
};
|
||||||
|
|
||||||
|
node_t *build_tree(int *tree_data, size_t tree_data_len);
|
||||||
|
void free_tree(node_t *tree);
|
||||||
|
int *sorted_data(node_t *tree);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "binary_search_tree.h"
|
#include "binary_search_tree.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user