For this challenge, you have flask A, which holds 18 ounces, and flask B, which holds 13 ounces. Using only the operations of filling a flask, emptying a flask, and pouring one flask into another (until either the first is empty or the second is full), you must manage to put exactly 17 ounces of water in flask A, leaving flask B empty.
Question
Guest
For this challenge, you have flask A, which holds 18 ounces, and flask B, which holds 13 ounces. Using only the operations of filling a flask, emptying a flask, and pouring one flask into another (until either the first is empty or the second is full), you must manage to put exactly 17 ounces of water in flask A, leaving flask B empty.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.