Skip to content

Commit 0084791

Browse files
authored
Update water-and-jug-problem.cpp
1 parent 0a53fd0 commit 0084791

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

C++/water-and-jug-problem.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Time: O(logn), n is the max of (x, y)
22
// Space: O(1)
33

4+
// Bézout's identity (also called Bézout's lemma)
45
class Solution {
56
public:
67
bool canMeasureWater(int x, int y, int z) {

0 commit comments

Comments
 (0)