Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitc33d698d7385be241e85fde64422b5610cde1279 (patch)
Author
 Stoycho Kyosev <68247567+stoychoX@users.noreply.github.com>
2023-02-09 15:56:47 +0200
Committer
 GitHub <noreply@github.com>
2023-02-09 15:56:47 +0200
Files0f1983e72dee009645f9a338b0990bd8e581c348
Data-structures-and-algorithms-c33d698d7385be241e85fde64422b5610cde1279.tar
Data-structures-and-algorithms-c33d698d7385be241e85fde64422b5610cde1279.tar.gz
Data-structures-and-algorithms-c33d698d7385be241e85fde64422b5610cde1279.zip
Parent6f17501eb94161ee0bd48e5d98ced8ba16cbdb46 (diff)
fix update height func
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Seminar10/AVLTree.hpp4
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