Search⌘ K
AI Features

Water and Jug Problem

Water and Jug Problem gives you two jugs, their capacities, and a target amount. Decide whether filling, emptying, and pouring can make their combined water exactly equal the target.

Statement

You are given two jugs with capacities of x liters and y liters, respectively, ...