摘要: 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)