โ† Thoughtworks questions

Distribute random coins into three sacks to minimize absolute difference

Filed under Thoughtworks

The question

A sack contains coins of denominations 1, 2, and 5. Coins are drawn at random and placed into one of three sacks that are initially empty. Formulate a strategy to place each drawn coin so that the absolute differences among the total values of the three sacks remain minimized at any instance.

No write-up yet. Related questions below have one.

Related Thoughtworks questions

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