← 返回 citadel 的题目列表Implement Binary Search Tree
类型:online_judge
Implement a Binary Search Tree (BST) class from scratch in C++ with the following functions: insert, search, delete.
Example
Input
Insert: [5, 3, 6, 2, 4, 7], Search 4, Delete 3, Search 3
Output
Insert: Success, Search 4: Found, Delete 3: Success, Search 3: Not Found