aboutsummaryrefslogtreecommitdiff
path: root/Computer_Science/data_structures/chapter_4/binary_search_tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'Computer_Science/data_structures/chapter_4/binary_search_tree.h')
-rw-r--r--Computer_Science/data_structures/chapter_4/binary_search_tree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Computer_Science/data_structures/chapter_4/binary_search_tree.h b/Computer_Science/data_structures/chapter_4/binary_search_tree.h
index da128f8..2d9425e 100644
--- a/Computer_Science/data_structures/chapter_4/binary_search_tree.h
+++ b/Computer_Science/data_structures/chapter_4/binary_search_tree.h
@@ -14,4 +14,12 @@ SearchTree insert(elem_t x, SearchTree t);
SearchTree delete(elem_t x, SearchTree t);
elem_t retrieve(Position p);
+struct TreeNode
+{
+ elem_t elem;
+ SearchTree left;
+ SearchTree right;
+};
+typedef SearchTree Tree;
+
#endif /* _BINARY_SEARCH_TREE_H */