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

Plz sent me in .net 2.0 interview Question & answers?

0 Answers  


what do you meant by Platform-Independent in Java?

6 Answers   Persistent,


When you?re running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

2 Answers   BirlaSoft,


How many processes can listen on a single TCP/IP port?

3 Answers  


What do you mean by text editor?

1 Answers   Infosys,






how many logical drive we can form to physical device in our computer?

1 Answers   nvidia,


I was try to insert 120000 records into the orcle table using the stroed proceeder. But it was stop the 9999. What can I do insert all the records.

2 Answers  


what is d main diff between the java and .net framework

0 Answers   Wipro,


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  


what is the current salary package in India for a lamp programmer

0 Answers   HCL,


hi friends please tel me how to handle the recovery manager(All i.e PopUp ,Application Crach ,Object state,etc) in QTP

1 Answers   IBM,


what is log files in qtp what is use

0 Answers   HSBC,


Categories