3
$\begingroup$

This question already has an answer here:

You have infinite amount of water.Your have given two jars one is of 3 liters and second is of 5 liters.

Task :- you have to calculate 4 liters of water in jar;

$\endgroup$

marked as duplicate by Apep, Community Nov 24 '17 at 3:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3
$\begingroup$

My answer is:

First step:

fill 3L jar and pour it in 5L jar

Second step:

fill 3L jar again and pour it in 5L jar to make it full so 3L jar has 1L water in it.

Third step:

empty 5L jar, pour 1L water from 3L jar in 5L jar

Fourth step:

Fill 3L jar and pour it in 5L jar now we have 4L water in 5L jar

$\endgroup$
1
$\begingroup$

First fill the 5L jar.
Then fill the 3L jar from the water in 5L jar
Now the 5L jar contains 2L of water
Empty the 3L jar and fill it with the 2L of water in 5L jar
Fill the 5L jar
Add 1L of the water from 5L jar to 3L jar (because 3L jar contains only 2L of water)
Now you have 4L of water in the 5L jar.

$\endgroup$
  • $\begingroup$ If you're interested in efficiency this answer has less steps! $\endgroup$ – ptr Nov 24 '17 at 12:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.