108.Convert Sorted Array to Binary Search Tree Posted on 2017-09-13 | In LeetCode Solution 1: accepted 2msA very readable solution with extra spaces used. 12345678public TreeNode sortedArrayToBST(int[] nums) { if (nums.length < 1) return null; int mid = nums.length / 2; TreeNode root = new TreeNode(nums[mid]); root.left = sortedArrayToBST(Arrays.copyOfRange(nums, 0, mid)); root.right = sortedArrayToBST(Arrays.copyOfRange(nums, mid + 1, nums.length)); return root;}