Tuesday, January 18, 2011

Maximum sum, with no adjacent elements

Given an integer array consisting of positive numbers only, find maximum possible sum of elements such that there are no 2 consecutive elements in the sum.

No comments:

Post a Comment