摘要: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.从给定的有序链表生成平衡二叉树。解题思路:最容易想到的就是利用数组生成二叉树的方法 阅读全文
posted @ 2017-10-19 23:00 乐乐章 阅读(124) 评论(0) 推荐(0) 编辑