- Home
- Interview Questions
- Aptitude
- 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
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)^nConditions 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 litresStep-by-step check:
| Operation | Milk removed | Milk left |
|---|---|---|
| 1 | 4.00 | 36.00 |
| 2 | 3.60 (10% of 36) | 32.40 |
| 3 | 3.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 litresThe 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
Related Questions
- How do you calculate successive percentage changes and work backwards to find the original value? · Aptitude · 1 ans
- If the price of a commodity rises by 25%, by what percent must consumption fall to keep expenditure unchanged? · Aptitude · 1 ans
- How do you use the rule of alligation to find the ratio for mixing two items of different prices? · Aptitude · 1 ans
- How do you solve coding-decoding questions where letters shift by fixed or varying positions? · Aptitude · 1 ans
- How do you decode sentence-based codes where several words share common code words? · Aptitude · 1 ans
- How do you pick the best synonym when two or more options seem correct? · Aptitude · 1 ans
- How do you solve 'pointing to a photograph' blood relation questions without getting confused? · Aptitude · 1 ans
- How do you solve coded blood relation questions where symbols stand for family relations? · Aptitude · 1 ans
🙋 Was this asked in your interview?
Which company? (optional — adds this question to the company's page)