1.

What is the sum of each of the balanced partitions for the array {5, 6, 7, 10, 3, 1}?(a) 16(b) 32(c) 0(d) 64The question was asked in a national level competition.My question is based upon Balanced Partition topic in section Dynamic Programming of Data Structures & Algorithms II

Answer»

Right option is (a) 16

To EXPLAIN: The SUM of all the elements of the ARRAY is 32. So, the sum of all the elements of each partition should be 16.



Discussion

No Comment Found

Related InterviewSolutions