Greedy Florist

  • + 18 comments

    I think this problem is poorly worded. It should say that as a group you have to buy one flower of each type. As stated, it could mean you simply want to buy N flowers; in this interpretation, you would only ever buy the cheapest type of flower. The example shows that it is the other interpretation that is correct, but the problem statement is ambiguous.