Measure 4 litres using 3 and 5 litre bottles
Filed under JM Financial
The question
Implement a solution to find the minimum number of steps required to obtain a specific amount of water using two bottles of different capacities.
No write-up yet. Related questions below have one.
Related JM Financial questions
Collected from public candidate posts and coding forums. Updated Nov 2026.