摘要:
如下的两个函数都是查找一个排序的数组中,最长的序列长度。上面的是别人写的,下面的是我写的。唉,人与人的差距咋这大呢 。。。 int a[]={1,1,1,2,2,3,3,3,3,3,3}; int f1(int a[],int n) { int len,i; for(len=i=1;iimax) imax=i; i=1; } } return imax; } 阅读全文
posted @ 2007-08-28 23:23
哈哈
阅读(144)
评论(0)
推荐(0)
浙公网安备 33010602011771号