最新回答 / _潇潇暮雨
26行换成这样就对了,if(nums[i] < min),因为还有等于的情况。以下是排序的详细过程:nums = new int[] { 61, 23, 4, 74, 13, 148, 20 };min = max = nums[0] = 61;i = 0,nums[0](61)<= max(61),else执行,min = nums[0] = 61;i = 1,num[1](23) <= max(61),else执行,min = nums[1] = 23;i = 2,nums[2](4...
2014-12-11