CodingReported in a candidate post, Nov 2020
Maximum students satisfied with candies
Filed under HashedIn
The question
Given an array where A[i] is the number of candies of the ith type, find the maximum number of students you can satisfy by giving each student N-1 candies of different types.
No write-up yet. Related questions below have one.
Related HashedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.