Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Languages AllOther Interview Questions

why Java is not purely object oriented?

9 Answers   Persistent,


1.what is the vesition managment.

0 Answers   IBM,


Write 5 differences between Memory Reference Instruction and Register Reference Instruction.

1 Answers   TCS, TJM,


About CLR, reflection and assemblies?

2 Answers   pspl,


can anyone please tell me the procedure for the NIC personal interview as i have been selected for the post of scientist/technical assistant B

2 Answers   NIC,


i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......

0 Answers  


in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?

0 Answers  


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

0 Answers  


Diff.b/w Frames and container?

1 Answers   Tech Mahindra, Wipro,


Diff between Proc transpose and Arrays with example?

2 Answers   Accenture,


How does the TCP handle the issue of multiplexing?

0 Answers  


What is the difference between WebIntelligence and Designer in creating universes?

0 Answers  


Categories