Company: ibm_10sep
Difficulty: medium
Find Maximum Bandwidth Problem Description A service provider manages n API endpoints, each serving different functionalities, numbered from 1 to n. Given m bandwidth units, allocate these among the endpoints. The objective is to maximize the bandwidth allocated to the k th endpoint while meeting the following conditions: All bandwidth units must be allocated. Each endpoint must have at least 1 unit of bandwidth allocated. The absolute difference in bandwidth between any two adjacent endpoints cannot exceed 1. Return the maximum possible bandwidth that can be allocated to the k th endpoint while satisfying all conditions. Complete the function findMaximumBandwidths in the editor. The function accepts the following parameters: int findMaximumBandwidths(int n, int k, int m) Parameters: int n : the number of API endpoints int k : the endpoint number for which bandwidth is to be maximized int m : the total bandwidth to distribute among the endpoints Returns int : the maximum units of bandw