AfanasevGad7

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

commit a9f988c43e385d132c2d2e320b25fd0b2ed93f60
parent cb4169d2cbd7ef1f857b4d9c3a892f4768fe4815
Author: Plat <plat@stellar-nexus.ru>
Date:   Thu, 23 Oct 2025 20:22:57 +0000

Updated headers - program is slow and tree is dumb

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

diff --git a/final_solution.cpp b/final_solution.cpp @@ -10,7 +10,7 @@ struct Node { Node* init(int); -void add(int, Node*); +Node* add(int, Node*); Node* parse_pre(Node*); @@ -39,7 +39,7 @@ int main() { { std::cin >> k; if (k > 0) - root = add(root, k); + root = add(k, root); } // value_node = search(root, 'int value from input'));