Company: Mathworks IIT Bhubaneswar
Difficulty: medium
Minimum Complexity Level 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? Function Description Complete the function findMinComplexity in the editor below. findMinComplexity has the following parameters: int complexity[] : an array of integers denoting the order and complexity of the lectures int days : the number of days the