Get reference code

Solution of buckets and tank problem

This online calculator find a solution to the question how to fill tank with certain amount of water using two buckets of different size
Timur2011-06-24 22:30:02

I've seen this problem in 4th grade exersize book: fill the tank with 4 liters of water using 3-liter and 5-liter buckets.
We could employ computer and solve it using brute force approach - by checking all available variants. Here is the calculator.

Solution of buckets and tank problemCreative Commons Attribution/Share-Alike License 3.0 (Unported)
All solutions:

Search depth limits the outputted solutions to certain number of actions (otherwise you can get many repetitions)

Request a calculator
View all calculators
(481 calculators in total. )