会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Eversliver
博客园
首页
新随笔
管理
2016年1月11日
LeetCode OJ: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 @ 2016-01-11 13:05 eversliver
阅读(247)
评论(0)
推荐(0)
公告