题解 1712: 数据结构-二叉排序树的基本操作

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

STL库中set(红黑树)的用法

STL库中set的用法可以自行百度;set的插入,删除和查看的时间复杂度是哦o(logN)的```cpp#include#include#include#include#include#include#includeusingnamespacestd;typedeflonglongLL;typedef

二叉排序树的基本操作(C++)

#include#includetypedefstructtreenode{intdata;structtreenode*lchild,*rchild;}bitree,*tree;typedefstructstack{tree*base,*top;intlen;}sqstack;voidinitsta