![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BST
Jerry Lee の blog
never never never give up.
展开
-
二叉查找树/二叉排序树/二叉搜索树----> BST
二叉查找树/二叉排序树/二叉搜索树—-> BST 基本操作:查找、插入、建树、删除。//二叉查找树/二叉排序树/二叉搜索树----> BST //基本操作:查找、插入、建树、删除。//search 函数查找二叉查找树中数据域为x的结点void search(node* root,int x){ if(root == NULL) { printf("searc原创 2017-11-17 09:20:12 · 1431 阅读 · 0 评论 -
遍历二叉搜索树习题
遍历二叉搜索树习题 PAT A1043输入178 6 5 7 10 8 11输出1YES5 7 6 8 11 10 8输入278 10 11 8 6 7 5输出2YES11 8 10 7 5 6 8输入378 6 8 5 10 9 11输出3NO#include <iostream>#include <cstdio>#include <cstdlib>#include原创 2017-11-17 10:09:11 · 590 阅读 · 0 评论