Hi guys, I recently got this question in my Salesforce onsite round.
Given an array of campaign costs and number of weeks, partition the
campaigns optimally to minimize the sum of weekly maxima.Sample test cases:
costs = [2, 5, 4, 3, 7, 1, 6, 8]
weeks = 3