In Java, an array is a data structure that can store a fixed-size sequence of elements of the same data type. In Java, you can create multidimensional arrays with two or more dimensions. A ...
int low=0,high=nums.length-1,mid=(low+high)/2; while(mid!=0&&mid!=nums.length-1&&low<=high) ...