会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sandom
博客园
首页
新随笔
联系
订阅
管理
2022年5月25日
平衡树(二叉查找树)
摘要: 一颗二叉搜索树应该做到的事情 int get_pre(int rt, int val)//前驱节点 { int ans; while (rt)//不断向右逼近 { if (bt[rt].val < val) ans = rt, rt = rk; else rt = lk; } return bt[a
阅读全文
posted @ 2022-05-25 16:53 sandom
阅读(86)
评论(0)
推荐(2)
编辑
公告