What does this
little fella do?
How about this one?
Let's make this harder.
How many implementations does this function have?
Implement a method that receive the configuration of bagel packs sold by a bakery and the amount of items that will be bought and returns the bundle configuration.
Example:
Packs configuration: {2, 5, 8}
Amount: 14
Answer: 1 x 8 + 3 x 2
An else follows...
Two tabs
*for bearing with me at this early hour