API Calls to Match Target Review Counts
Asked at Amazon · Coding Questions · Difficulty: Easy
Each API call adds or removes one review from a product. For each target value `counts[i]`, compute the total number of API calls needed to change **every** product in `reviews` to exactly `counts[i]`. Return one total per target.
Loading the problem…