会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Awy
每天记录一点点,快活程序员
博客园
首页
新随笔
联系
订阅
管理
2014年4月18日
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.思路:把一个排好序的链表转化为平衡二叉树。这道题主要是递归做法,每次找到中间结点,...
阅读全文
posted @ 2014-04-18 00:24 Awy
阅读(95)
评论(0)
推荐(0)
公告