100 Day Summer Challenge

100 problems in 100 days. #100problems

Day 42

42 of 100: Die Even Harder

You have two containers, one which can hold 11 liters of water and the other of which can hold 13 liters. You also have access to a sink with a faucet. You can do any of these three things as many times as you like:

  1. Fill one of the containers to the top with water.
  2. Completely empty one of the containers into the sink.
  3. Pour the contents of one container into another until the second container is full (or until the first container is empty).

Given these conditions, is it possible to measure out exactly 8 liters?

If this puzzle seems familiar, it might be because a version of this challenge was featured in the third "Die Hard" movie.

×

Problem Loading...

Note Loading...

Set Loading...