Available question text
Determine whether, using fill/empty/pour operations on two jugs of capacities x and y, you can measure exactly target liters. This is true iff target ≤ x+y and target is a multiple of gcd(x,y) (Bezout/Diophantine condition).
Related questions
Continue with questions that share topics or the same question type.
- 0/1 Knapsack Problem with Time Complexity Optimization
Coding
- Alien Dictionary (hard problem from leetcode)
Coding
- Calculate Trapping Rain Water
Coding
- Container With Most Water
Coding · Array · Greedy · Two Pointers
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 365. Water and Jug Problem
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source