Amazon Recently Asked Online Assessments | 1 Oct 2024 | Find Maximum Zeroes

Amazon · Question · Posted Apr 2026

Find Maximum Zeroes Problem Statement: In an Amazon analytics team, the Analysts collectively have a preference for the number zero and a disapproval towards negative numbers. Their objective is to determine the maximum number of zeroes achievable after performing a series of operations (possibly zero) on an array, all while avoiding negative values. Formally, given an array arr of size of n of positive integers, the Analysts can perform the following operation any number of times (possibly zero): Choose a ...

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

Log in Create a free account