1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the sum of each of the balanced ...
Q.

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. 64
Answer» A. 16
Explanation: 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