会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mrpod2g
--Coding is my passion
首页
管理
2015年4月10日
Convert Sorted List to Binary Search Tree *
摘要: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.用空间换时间的方法,先用一个数组将节点按序存放,然后建树,代码如下:/** * D...
阅读全文
posted @ 2015-04-10 21:19 mrpod2g
阅读(115)
评论(0)
推荐(0)
公告