Back to Browse

Codility MinMaxDivision solution

4.0K views
Sep 24, 2021
19:29

Min Max Division is a Codility exercise that can be solved by doing a binary search. The aim of the exercise is to take an array and split it into a specified number of blocks. The split points of the blocks should minimise the maximum sum of the values within any one block. This solution scores 100% first time in Codility. The result is guessed and the array is tested to see if the array can be split to produce the result. The method then uses a binary search to home in on the best result.

Download

1 formats

Video Formats

360pmp427.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Codility MinMaxDivision solution | NatokHD