#2644

Find the Maximum Divisibility Score

pupil · 455 · lc easy +26 · 51.7% accepted · 248 likes · top 41%

Description

You are given integer arrays nums and divisors. The divisibility score of divisors[i] is the count of elements in nums evenly divisible by divisors[i]. Return the element of divisors with the highest score; break ties by returning the smallest value.

Code

1
2
3