← Oracle questions

Water-Jug Problem

Filed under Oracle · Also reported at Chubb, Decimal Point Analytics, Deutsche Bank, Fiserv, Informatica, ION TRADING, MphRx, National Instruments and 4 more

Given two jugs with capacities X and Y liters, determine if it is possible to measure exactly Z liters using only these jugs. You can fill, empty, or pour water from one jug to another.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.