Minimum Difficulty of a Job Schedule
Given jobs in required execution order and a number of days, assign at least one consecutive job to each day and minimize the sum of each day's hardest job; return -1 if no schedule is possible.
Given jobs in required execution order and a number of days, assign at least one consecutive job to each day and minimize the sum of each day's hardest job; return -1 if no schedule is possible.