jug1Capacity
and jug2Capacity
is less than targetCapacity
. If it is, return false
as it is impossible to measure more water than the total capacity of both jugs.jug1Capacity
, jug2Capacity
, or their sum equals targetCapacity
. If any of these conditions are true, return true
.jug1Capacity
and jug2Capacity
.targetCapacity
is divisible by the GCD. If it is, return true
; otherwise, return false
.