diff options
author | Christian C <cc@localhost> | 2025-03-05 19:58:33 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-05 19:58:33 -0800 |
commit | 5b3cb257506f3fbe8c5ad3ea8aedb87d51e4c87c (patch) | |
tree | b96b9d3512afcd0bb872ec86bb393be6cbd259fe /include/lib/algo | |
parent | b68a9a6263610bb0a5ada53695e025daf1209fcb (diff) |
Filter small labels
Diffstat (limited to 'include/lib/algo')
-rw-r--r-- | include/lib/algo/avl_tree.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |