Company: Uber_She ++_17_jan
Difficulty: medium
Maximize Portion Size Problem Description Uber Eats is preparing to cut circular food packages into equal-sized portions for couriers. The goal is to determine the maximum possible area of a single portion when at least portionCount equal portions can be produced. Every portion must come entirely from a single package: a portion may not be assembled from leftovers of two different packages. Leftover area inside a package is simply discarded. The area of a circular package of radius r is pi * r * r . Use 3.14159265359 as the value of pi . The result must be returned as a string, rounded to four decimal places. Function Description Complete the function maximizePortionSize() . It takes the following 3 parameters and returns the answer: n : an integer, the number of packages. packageRadii : an integer array of length n , the radius of each circular package. portionCount : an integer, the number of equal portions that must be produced. Returns a string: the maximum possible area of one por