From 87a54ee9a46f0027e755221d94ecd8208ce8eb2c Mon Sep 17 00:00:00 2001 From: Shivendra k jha <47923680+skjha1@users.noreply.github.com> Date: Tue, 22 Sep 2020 12:02:28 +0530 Subject: [PATCH] Update 02 BST Insert,Inorder&Search.cpp --- Tree/BST/02 BST Insert,Inorder&Search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tree/BST/02 BST Insert,Inorder&Search.cpp b/Tree/BST/02 BST Insert,Inorder&Search.cpp index 81371f1..3bb4b84 100644 --- a/Tree/BST/02 BST Insert,Inorder&Search.cpp +++ b/Tree/BST/02 BST Insert,Inorder&Search.cpp @@ -24,7 +24,7 @@ void BST::Insert(int key) { Node* t = root; Node* p; - Node* r; + Node* r=t; // root is empty if (root == nullptr) {