import java.util.ArrayList; public class Solution { public int minNumberInRotateArray(int [] array) { int len =array.length; if(len<=0){ return -1; } int minVal=array[0]; for(int i=0;i<len;i++){ if(array[i]<minVal){ minVal=array[i]; break; } } return minVal; } }