Minimum moves to make cargo weight equal
Filed under TurboHire
The question
Given the current cargo weights of N ships, find the minimum number of moves (moving a ton of cargo from one ship to another) to make the weight equal in all ships, or return -1 if impossible.
No write-up yet. Related questions below have one.
Related TurboHire questions
Collected from public candidate posts and coding forums. Updated Nov 2026.