这个算法的时间复杂度是多少?我最初的猜测是它是O(log[n])?
int array[] = new int[100];
int counter = 0;
for ( int i = 0; i < array.length; i++ ) {
for ( int j = i + 1; j < array.length; j++ ) {
if ( array[i] == array[j] ) {
counter++;
}
}
}