Success Value for Each Query
Asked at Amazon · Coding Questions · Difficulty: Easy
Given `num_viewers` and a list of `queries` (each a `k`), return for each query the sum of the top `k` viewer counts.
Loading the problem…
Asked at Amazon · Coding Questions · Difficulty: Easy
Given `num_viewers` and a list of `queries` (each a `k`), return for each query the sum of the top `k` viewer counts.
Loading the problem…