From 5b3cb257506f3fbe8c5ad3ea8aedb87d51e4c87c Mon Sep 17 00:00:00 2001 From: Christian C Date: Wed, 5 Mar 2025 19:58:33 -0800 Subject: Filter small labels --- include/lib/algo/avl_tree.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/lib/algo') diff --git a/include/lib/algo/avl_tree.h b/include/lib/algo/avl_tree.h index 4bfc0f7..f77ce5b 100644 --- a/include/lib/algo/avl_tree.h +++ b/include/lib/algo/avl_tree.h @@ -29,6 +29,12 @@ struct AVLNode* right_rotate(struct AVLNode* parent); // Rotate an AVL node left struct AVLNode* left_rotate(struct AVLNode* parent); +// Create AVL node +struct AVLNode* create_avl_node(void* data, bool_t (*compare)(void*, void*)); + +// Insert data into AVL tree +struct Result avl_insert(struct AVLNode* node, void* data, bool_t (*compare)(void*, void*)); + // In-order traversal print pointer void print_in_order(struct AVLNode* root); -- cgit v1.2.1