There are N values in the array, and one of them is the smallest value. How can I find the smallest value most efficiently?
int small=a[0]; for (int x: a.length) { if(a[x]