Company: Deshaw
Difficulty: medium
Maximum Minimum Rating You are an app developer working for an e-commerce company with n customers and m products. Each customer has rated all m products, and these ratings are given in a 2-D matrix, where rating[i][j] (0 ≤ i You have been assigned the task to list exactly (n - 2) products of the m products on the app\'s homepage. For all 0 ≤ i Determine the maximum value of the minimum rating. Function Description Complete the function getMaximumRating in the editor below. Parameters int rating[n][m] : the rating given by n customers to m products Returns int : the maximum value of the minimum rating Example Given n = 4, m = 4 and rating = [[3, 4, 2, 2], [3, 3, 3, 4], [2, 4, 2, 3], [4, 2, 4, 2]]. We have to select 2 products. If we select the first and second products, then ratings given by the customers to these products will be [3, 4], [3, 3], [2, 4], [4, 2]]. Considering the maximum rating for each customer, mx = [4, 3, 4, 4]. The minimum rating obtained is 3. For any other combina