Split It Again
CodeChefOpen on judge ↗
Given an array $A$ of $N$ integers, the task is to split the array into 3 non-empty subarrays, such that the difference between the subarray having maximum sum and the subarray having minimum sum is minimized. More formally, let $s1$, $s2$ and $s3$ be the sums of the first, second and third subarrays respectively. Then you need to calculate the minimum value of $max({s1, s2, s3})$ - $min({s1, s2,
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start