108. Convert Sorted Array to Binary Search Tree
文章目录
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
解题思路: dfs ,按照bst的定义,从nums的中点选做head, 然后左右两边去dfs
|
|
文章作者 Hustbill
上次更新 2017-09-18
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
解题思路: dfs ,按照bst的定义,从nums的中点选做head, 然后左右两边去dfs
|
|
文章作者 Hustbill
上次更新 2017-09-18