From c33d698d7385be241e85fde64422b5610cde1279 Mon Sep 17 00:00:00 2001 From: Stoycho Kyosev <68247567+stoychoX@users.noreply.github.com> Date: Thu, 9 Feb 2023 15:56:47 +0200 Subject: fix update height func --- Seminar10/AVLTree.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Seminar10/AVLTree.hpp b/Seminar10/AVLTree.hpp index 2c0a758..355d1c5 100644 --- a/Seminar10/AVLTree.hpp +++ b/Seminar10/AVLTree.hpp @@ -54,7 +54,7 @@ private: } rotateRight(r); - updateHeight(r->left); + updateHeight(r->right); updateHeight(r); } } @@ -200,4 +200,4 @@ private: size_t size; }; -#endif \ No newline at end of file +#endif -- cgit v1.3.1-26-gb76a