Website Summary Files Commits Branches @commit @diff @stats
path: root / Seminar08 / height.cpp
diff options
context:
space:
mode:
Commit12d850dcec6e762f48e3c8710ce46976c197c0eb (patch)
Author
 Ekaterina <73318371+keti200125@users.noreply.github.com>
2023-08-11 16:55:53 +0300
Committer
 GitHub <noreply@github.com>
2023-08-11 16:55:53 +0300
Files323856db5c77c1bfe7ecd13f904e10a804e5b247 /Seminar08/height.cpp
Data-structures-and-algorithms-12d850dcec6e762f48e3c8710ce46976c197c0eb.tar
Data-structures-and-algorithms-12d850dcec6e762f48e3c8710ce46976c197c0eb.tar.gz
Data-structures-and-algorithms-12d850dcec6e762f48e3c8710ce46976c197c0eb.zip
Parent5004d6b16cd31bd344b97580e084a573927695ba (diff)
Update height.cpp
update wrong function call
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Seminar08/height.cpp2
diff --git a/Seminar08/height.cpp b/Seminar08/height.cpp
index 97ba9ab..c115228 100644
--- a/Seminar08/height.cpp
+++ b/Seminar08/height.cpp
@@ -6,7 +6,7 @@ size_t height(const Tree<T>* tree) {
if (!tree)
return 0;
- return 1 + std::max(heightOfTree(tree->left), heightOfTree(tree->right));
+ return 1 + std::max(height(tree->left), height(tree->right));
}
int main(){