LEETCODE
UNLOCKED
Problems
Donate
Premium
Water and Jug Problem
Solution Code
Time Complexity
O(
log(min(x, y)
)
Space Complexity
O(
1
)