aboutsummaryrefslogtreecommitdiff
path: root/search_BST.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'search_BST.cpp')
-rw-r--r--search_BST.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/search_BST.cpp b/search_BST.cpp
deleted file mode 100644
index 9d06727..0000000
--- a/search_BST.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "leetcode.h"
-
-class Solution {
-public:
- TreeNode *searchBST(TreeNode *root, int val) {
- if (root == NULL)
- return NULL;
- if (root->val == val)
- return root;
- if (root->val > val)
- return searchBST(root->left, val);
- return searchBST(root->right, val);
- }
-};
-
-int main() {}