摘要:
我的菜菜解法://给定一个整数数组,其中元素的取值范围为0到10000,求其中出现次数最多的数public class Count{public static void main(String args[]){int array[] = {1,23,1,222,3,1,2,2,22,355,121,23,23,23,23,23,22,22,22,3,4};long start = System.nanoTime();int arr[] = new int[array.length];/*数组默认值为零for(int i = 0; i=max){max = arr[i];index = i;}} 阅读全文