Maximum Product Rating
Amazon interview questions · Hard · OA round · 6 tests
Spend at most k total +1 operations across ratings, then choose m products whose bitwise AND is as large as possible.
The full question, tests and reference solution are available with a plan that includes Amazon.
Run your code with Ctrl+Enter to see results.