Monday, October 27, 2008

微软面试题求解

算法题
A为整数数组,长度N,求最大的A[i],使得A[i]=A[x]+A[y].
0 < = i,x,y < N
算法的复杂度是 O(nlog(n)) or O(n^2)

No comments: