2644. Find the Maximum Divisibility Score

You are given two

0-indexedinteger arrays`nums`

and`divisors`

.The

divisibility scoreof`divisors[i]`

is the number of indices`j`

such that`nums[j]`

is divisible by`divisors[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 { |