2644. Find the Maximum Divisibility Score
You are given two 0-indexed integer arrays
nums
anddivisors
.The divisibility score of
divisors[i]
is the number of indicesj
such thatnums[j]
is divisible bydivisors[i]
.Return the integer
divisors[i]
with the maximum divisibility score. If there is more than one integer with the maximum score, return the minimum of them.
1 | class Solution { |