- 0of 0 votes
I was asked this question in a recent interview for a startup.
We have coffee vending machine with 3 buttons which can dispense 4oz, 7oz and 13oz of coffee.
Given a cup and the min and max amount(oz) of coffee it should fill. determine if the coffee vending machine can satisfy the condition.
The buttons can be pressed as many times as possible to fill the cup. Coffee shouldn't overflow..