Data Structures & AlgorithmsHardCodeforces Div2 C · GATE CS

Smallest value of the maximum block sum when [4, 8, 2, 9, 3, 6] is split into 3 contiguous blocks?

  1. A. 17
  2. B. 15
  3. C. 20
  4. D. 12

Correct answer: D. 12

Try every pair of cut positions and take the best split: the minimum over splits of the largest block sum.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic