From 75c0080154faa011f2b7b4f6816e79f9e1e0424a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 21 Feb 2026 14:39:35 +0300 Subject: [PATCH] New functions in bst.h --- src/bst.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/bst.h b/src/bst.h index 40b66c6..3cdc45c 100644 --- a/src/bst.h +++ b/src/bst.h @@ -7,4 +7,14 @@ bstNode* newNode(int); Tree* newTree(); void bstInsert(Tree*, int); bool bstContains(Tree*, int); -void bstFree(Tree*); \ No newline at end of file +void bstFree(Tree*); + +void bstInorder(Tree*); +void bstPreorder(Tree*); +void bstPostorder(Tree*); + +int bstHeight(Tree*); +int bstSize(Tree*); +// bstMin и bstMax возвращают 0 на пустом дереве +int bstMin(Tree*); +int bstMax(Tree*); \ No newline at end of file