Thursday, April 26, 2012

Programming Test


Given a list, array, of integers, find the index of the two consecutive numbers which have the largest sum.
For example, if the array is 1, 2, 3, 4, 5, the answer is 4, as 4+5 = 9.

No comments:

Post a Comment