1. Home
  2. Interview Questions
  3. Aptitude
  4. How do you calculate the liquid left after repeatedly removi…

Try answering first

In a real interview nobody shows you the answer. Think it through (or type it), then reveal the answers and rate yourself.

1 Answer

0 0
InterviewQuestions Team ✔ Expert answer ✔ Best answer ·

Short answer: Each removal takes away the same fraction x/V of the pure liquid currently present. So after n operations, pure liquid left = initial quantity × (1 − x/V)^n, where V is the container volume and x is the quantity removed and replaced each time.

Detailed explanation

Suppose a vessel holds V litres of pure milk. You draw out x litres and refill with x litres of water, then repeat. The first time, you remove x litres of milk. From the second time on, you remove a mixture, so you take out less milk than x. This is why the loss is not linear.

The key observation: the mixture is uniform, so removing x out of V litres removes the fraction x/V of every component. The milk left after each step is (1 − x/V) times the milk before it. Repeating n times gives a geometric decrease:

Milk after n operations = M0 * (1 - x/V)^n

If the vessel starts as a mixture with milk concentration c:
Final concentration of milk = c * (1 - x/V)^n

Conditions for the formula:

  • The volume stays V after every operation. The amount added equals the amount removed.
  • The same quantity x is removed each time.
  • The liquid added contains none of the substance you are tracking. Water adds no milk.
  • The mixture is stirred well, so each draw has the current concentration.

If x changes between operations, multiply the separate factors instead, for example (1 − x1/V)(1 − x2/V).

Example

Question 1 (direct): A 40-litre can is full of milk. 4 litres are taken out and replaced with water. This is done 3 times in total. How much milk remains?

Milk left = 40 * (1 - 4/40)^3
          = 40 * (0.9)^3
          = 40 * 0.729
          = 29.16 litres
Water     = 40 - 29.16 = 10.84 litres

Step-by-step check:

OperationMilk removedMilk left
14.0036.00
23.60 (10% of 36)32.40
33.24 (10% of 32.4)29.16

Question 2 (reverse, harder): A vessel is full of pure milk. Twice, 9 litres are drawn out and replaced with water. The final ratio of milk to water is 16:9. Find the capacity.

Milk fraction left = 16 / (16 + 9) = 16/25
(1 - 9/V)^2 = 16/25
1 - 9/V = 4/5
9/V = 1/5
V = 45 litres

The shortcut is to take the n-th root of the final fraction. Interviewers often choose perfect squares or cubes, like 16/25 or 27/64, so this works out cleanly.

Common mistakes

  • Subtracting linearly. Writing 40 − 3×4 = 28 litres assumes pure milk is removed every time. After the first step, part of each draw is water.
  • Applying the formula to the wrong component. The formula gives the substance being diluted (milk), not the one being added. Find water as total minus milk.
  • Using it when the replacement is not equal. If 4 litres are removed but 5 are added, the volume changes. Track each step manually instead.
  • Taking the square root of the ratio 16:9 instead of the fraction 16/25. The formula needs milk as a fraction of the total, not milk to water.

Follow-up questions

  • If the vessel initially has milk and water in the ratio 3:1, how does the formula change?
  • How many operations are needed before milk falls below half the vessel?
  • What if the removed quantity is replaced with a mixture containing some milk instead of pure water?

Interview tip: State the reason for the formula (each draw removes the fraction x/V of what is currently present) before plugging in numbers. It shows you can handle variations, not just recall a formula.

Reviewed by the Interview Questions editorial team · Last updated

How well did you know this?

Rate yourself to track progress, build your streak and get “didn't know” questions in your revision list.

Your Answer

More hard Aptitude questions

All hard questions →

Related Questions

‹
Q2 of 9 · Aptitude
Next ›

Interview Questions

Free interview questions and answers, MCQ practice, online tests, mock interviews and group discussions — everything you need to crack your next interview.
📍 Dasardot LLC
1309 Coffeen Avenue STE 1200
Sheridan, Wyoming 82801
USA