二分查找思路 public int solve (int[] a) { // write code here if(a== null || a.length == 0) return 0; int ans = Integer.MIN_VALUE; for(int i = 0;i < a.length-1;++i){ int low = i,high = a.length-1;//要留出两个数字,所以low最大是a.length-2 while(low < high){ ...