diff options
author | Michael Hunteman <michael@huntm.net> | 2023-09-23 12:53:46 -0500 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2023-10-21 21:48:03 -0500 |
commit | 9891f38ddcca971fa21ab61e7a70832c8c877b0a (patch) | |
tree | 1e820435b42c5c8187bb6d17b3ff1c204c933c1a /tree/data_structures.h |
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 |