← 返回 atlassian 的题目列表Calculate and Sort Customer Ratings
类型:online_judge
Given a 2D array where each subarray holds the ratings data (1-5) for a customer service representative, return the average scores for all representatives sorted in descending order. Assume the input is a 2D array. Each subarray represents the ratings data for one representative. Example input: [[4, 5, 5], [3, 3], [5, 2, 5, 3]]. Example output: [4.67, 3.5, 3.25]
Example
Input
[[4, 5, 5], [3, 3], [5, 2, 5, 3]]