I need a function to count all the numbers given one array and find the minimum. The array is not ordered and i want it the fastest it can be
public int findMin(int[] array) { int min = array[0]; for(int i = 1; i < array.length - 1; i++) { if(min > array[i]) { min = array[i]; } } return min; }