Amazon WOW OA | 28 July, 2023 | MeanRankCount | MinimumInefficiency

Amazon · Question · Posted Jul 2023

Question 1 MeanRankCount Amazon Academy recently organized a scholarship test on its platform. There are n students with roll numbers 1, 2, ..., n who appeared for the test, where the rank secured by the ith student is denoted by rank[i]. Thus, the array rank is a permutation of length n. Groups can only be formed with students having consecutive roll numbers, in other words, a subarray of the original array. For each value x (1 ≤x≤ n), find the ...

The full answer & interview discussion are available to premium members.

Log in Create a free account