Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
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