← Goldman Sachs questions
CodingReported in a candidate post, Sep 2025

Maximum equal elements after at most k increments

Filed under Goldman Sachs

Given an array and an integer k, in one operation you may increment any element by 1; you may use at most k operations in total. Return the largest number of elements that can be made equal. The array…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.