AfanasevGad7

This is a task for our favourite professor
git clone git://git.stellar-nexus.ru/AfanasevGad7
Log | Files | Refs

commit 6297636842db3fa1f13d2eaf9346cc21990a81b1
parent c4e292b6048e1bd0bdd47fa73238906551c51c0b
Author: Plat <plat@stellar-nexus.ru>
Date:   Thu, 23 Oct 2025 19:53:28 +0000

Fixed typos

Diffstat:
Mfinal_solution.cpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/final_solution.cpp b/final_solution.cpp @@ -147,7 +147,7 @@ get_balance_factor(Node* root) if (!root) return 0; - return get_height(root->left) - (get_geight(root->right); + return get_height(root->left) - get_height(root->right); } @@ -203,13 +203,13 @@ balance2(Node* root) if (bf > 1) { if (get_balance_factor(root->left) < 0) root->left = left_turn(root->left); - return right_turn(root) + return right_turn(root); } if (bf < -1) { if (get_balance_factor(root->left) > 0) root->right = right_turn(root->right); - return left_turn(root) + return left_turn(root); } return root;