Company: Mathworks IIT Bhubaneswar
Difficulty: medium
Minimum Conference Complexity Problem Description Alex is attending a software engineering conference in which various lectures are presented. The subject matter of each lecture has a certain complexity. Alex has planned the order of lectures they would like to attend, but now they need to schedule these into several days. Their goal is to attend at least one lecture every day and to plan the lectures in a way that minimizes the overall complexity of the conference. (Each day's complexity is defined as the complexity of the most complex lecture attended that day.) Given the complexity levels of the lectures, as well as how many days the conference is being held, what is the overall minimum complexity that can be achieved with optimal planning? Examples Example 1: Input: complexity = [1, 5, 3, 2, 4], days = 2 Output: 6 Explanation: Let's say there are n = 5 lectures, where complexity = [1, 5, 3, 2, 4], and the length of the conference is days = 2. (Note that complexity denotes both the