LintCode中第177题,解答代码如下:
private static TreeNode sortedArrayToBST(int[] A) { TreeNode root = recursion(A, 0, A.length - 1); return root; } /** * 递归+二分法 *
LintCode中第177题,解答代码如下:
private static TreeNode sortedArrayToBST(int[] A) { TreeNode root = recursion(A, 0, A.length - 1); return root; } /** * 递归+二分法 *