Amazon OnCampus OA 2026 | Coding Assessment | Complete Solutions & Tips | Array Prefix Operations & String Permutations | Aug 29th Campus Assessment

Amazon · Question · Posted Mar 2026

Question 1: Maximize 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 sequenceData of size 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