diff options
Diffstat (limited to 'tree/data_structures.h')
-rw-r--r-- | tree/data_structures.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tree/data_structures.h b/tree/data_structures.h new file mode 100644 index 0000000..dbc7bdc --- /dev/null +++ b/tree/data_structures.h @@ -0,0 +1,14 @@ +#ifndef DATA_STRUCTURES_H +#define DATA_STRUCTURES_H + +struct node { + int val; + struct node *left; + struct node *right; +}; + +extern struct node *root; + +struct node *insert(struct node* cur, int val); + +#endif |