We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b6ab55 commit 485358eCopy full SHA for 485358e
2001-2500/2169.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def countOperations(self, num1: int, num2: int) -> int:
3
+ c = 0
4
+ while num1!=0 and num2!=0:
5
+ if num1>=num2:
6
+ num1-=num2
7
+ else:
8
+ num2-=num1
9
+ c+=1
10
+ return c
11
+
0 commit comments