摘要:
Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1. The Max 阅读全文
摘要:
Position BinarySearch( List L, ElementType X ){ int f=1,ret=-1,r=L->Last; int b = (f+r)/2; while(f<=r){ if (X>L->Data[b]) f = b+1; else if(X<L->Data[b 阅读全文