Water Vessels Minimum Steps and MinDiff Set
Filed under InMobi
The question
Given two vessels of capacity M and N, find minimum steps to get P liters by filling, emptying, or pouring. Also, find a MinDiff set by picking one element from each of n sets such that the difference between max and min is minimized.
No write-up yet. Related questions below have one.
Related InMobi questions
Collected from public candidate posts and coding forums. Updated Nov 2026.