Search⌘ K
AI Features

Water and Jug Problem

Water and Jug Problem asks you to return TRUE when two jugs with fixed capacities can hold exactly the target total using only filling, emptying, and pouring operations.

Statement

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