摘要:1, 如何不排序而找到最大,次大或者最小值?var int max1, max2, min1;iterate array once: update max1, max2, min1, for example: if(A[i]>max1){max2=max1; max1=A[i];}...2, 关于括...
阅读全文
posted @ 2014-09-11 23:08
posted @ 2014-09-11 23:08
posted @ 2014-09-08 19:03