For an array of size N, what is the number of comparisons required?
int[] int_array = {4, 6, 2, 9, 1, 7, 4, 2, 9, 0, 3, 6, 1, 6, 8}; int largst=int_array[0]; int second=int_array[0]; for (int i=0; ilargst) { second=largst; largst=int_array[i]; } else if(int_array[i]>second && int_array[i]