Skip to content

Commit b3988d8

Browse files
committed
Runtime: 1147 ms (Top 45.35%) | Memory: 25.8 MB (Top 79.68%)
1 parent 8d161f3 commit b3988d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
# Runtime: 1147 ms (Top 45.35%) | Memory: 25.8 MB (Top 79.68%)
12
class Solution:
23
def minOperations(self, nums: List[int], divs: List[int]) -> int:
34
div = reduce(gcd, divs)
4-
return next((i for i, n in enumerate(sorted(nums)) if div % n == 0), -1)
5+
return next((i for i, n in enumerate(sorted(nums)) if div % n == 0), -1)

0 commit comments

Comments
 (0)