You are given an array of integer of size N (A[0],A[1],A[2],...A,[N-1])
containing both negative and non-negative integers. Design an efficient
algorithm to find the sub sequence A[i],A[i+1],A[i+2]...,A[j] having the
maximum summation (A[i]+A[i+1]+A[i+2] + ...+A[j] have the highest sum). What
is the complexity of your algorithm?
http://spellscroll.com/questionfull/247/
Thursday, October 23, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment