Minimum iterations to make array elements equal
Filed under Athenahealth
The question
Given an array of n positive integers, find the minimum number of iterations to make all elements equal, where in each iteration all elements are reduced by 1 except the maximum element.
No write-up yet. Related questions below have one.
Related Athenahealth questions
Collected from public candidate posts and coding forums. Updated Nov 2026.