We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Greedy Florist
You are viewing a single comment's thread. Return to all 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.