摘要: 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 阅读(94) 评论(0) 推荐(0) 编辑