Merge pull request #882 from liushubin-gitHub/main

fix: Insert() does not work issue  in binary_search_tree.cpp
This commit is contained in:
Krishna Vedala
2020-06-22 22:44:27 -04:00
committed by GitHub

View File

@@ -43,7 +43,7 @@ void Insert(node *n, int x) {
temp->val = x;
temp->left = NULL;
temp->right = NULL;
n->left = temp;
n->right = temp;
} else {
Insert(n->right, x);
}