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.
注意递归要从start 到 mid - 1,mid + 1 到 end,因为mid已经拿出来做root了。
Last updated
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
注意递归要从start 到 mid - 1,mid + 1 到 end,因为mid已经拿出来做root了。
Last updated