标签:
题目:
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
我的解法:
(1)算法思想:
二分法,数组的中间点为根节点,然后递归。
(2)代码如下:
Convert Sorted Array to Binary Search Tree
标签:
原文地址:http://blog.csdn.net/littlebob180/article/details/43154617