Chocolate Distribution Problem with ranks
Filed under Goldman Sachs
The question
Solve a variation of the chocolate distribution problem where persons also have given ranks, using sorting and a two-pointer approach.
No write-up yet. Related questions below have one.
Related Goldman Sachs questions
Collected from public candidate posts and coding forums. Updated Nov 2026.