Company: Deshaw_16sep
Difficulty: medium
Minimize Image Processing Cost Problem Description Devise a strategy to minimize the costs of processing n images, where each image requires specific filters applied for a defined time frame, and the cost to apply filters to the i th image is filterCost[i] . Each image must be processed from startDay[i] to endDay[i] (inclusive). Additionally, there is an exclusive offer to apply a filter to all n images at a discounted rate of discountPrice per day. Your goal is to create an efficient image processing plan that adheres to time constraints and budget considerations, and return the minimum cost modulo (10 9 + 7). Complete the function getMinProcessingCost that takes the following parameter(s): int filterCost[n] : the cost of filtering each image for processing int startDay[n] : the first day each image should be processed int endDay[n] : the last day each image should be processed int discountPrice : the discounted rate at which filters can be applied to all the images on one day Returns