Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
[CodeSignal] Maximum Product Rating
Hard
The engineers at Amazon are working on a new rating system for their products. For each product, an array customer_rating is maintained for the last n orders of that product, where the rating given by the i-th customer is represented by customer_rating[i].
The following algorithm is used to calculate the new_rating of the product:
...
More Amazon interview questions
- [CodeSignal] Permutation Sorterhard
- [CodeSignal] Warehouse Emergency Deliverieshard
- [CodeSignal] Maximum Secure Deliveriesmedium
- Binary Tree Camerashard
- Maximum Interval Overlapmedium
- Asteroid Collisionmedium
- Top Amazon System Design Questionshard
- Maximum Points You Can Obtain from Cardsmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.