We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a53fd0 commit 0084791Copy full SHA for 0084791
C++/water-and-jug-problem.cpp
@@ -1,6 +1,7 @@
1
// Time: O(logn), n is the max of (x, y)
2
// Space: O(1)
3
4
+// Bézout's identity (also called Bézout's lemma)
5
class Solution {
6
public:
7
bool canMeasureWater(int x, int y, int z) {
0 commit comments