Company: LinkedIn_coachin_11_jan
Difficulty: medium
Minimum Operations to Match Target Distances Problem Description A company tracks the distances traveled by n vehicles, represented by the array distance . Due to new operational goals, the company wants to standardize the travel distances to match a set of target values. In one operation, the distance of a vehicle can either be increased or decreased by 1 unit. Given q target distance requests, represented by the array targetDistance , implement a function that finds the minimum number of operations required to adjust all vehicle distances to match each target value in targetDistance[i] (0 ≤ i < q). The function countMinimumOperations will take two inputs: int distance[n] : The distances traveled by the vehicles. int targetDistance[q] : The target distances for each adjustment request. The function should return an array of integers that contains the minimum number of operations required to adjust all vehicle distances to match each targetDistance[i] . Note: Each target distance