AfanasevGad7

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

commit cb4169d2cbd7ef1f857b4d9c3a892f4768fe4815
parent 3461fbd8543736a3352b47eb465653912c7720cb
Author: Plat <plat@stellar-nexus.ru>
Date:   Thu, 23 Oct 2025 20:13:15 +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 @@ -70,13 +70,13 @@ add(int val, Node* root) return init(val); if (val < root->val) - root->left = add(root->left, val); + root->left = add(val, root->left); else if (val > root->val) - root->right = add(root->right, val); + root->right = add(val, root->right); else return root; - return balance2(root) + return balance2(root); }