LeetCode 1808. Maximize Number of Nice Divisors
Math
Input: primeFactors = 5
Output: 6
Explanation: 200 is a valid value of n.
It has 5 prime factors: [2,2,2,5,5], and it has 6 nice divisors: [10,20,40,50,100,200].
There is not other value of n that has at most 5 prime factors and more nice divisors.Input: primeFactors = 8
Output: 18Solution
PreviousLeetCode 1807. Evaluate the Bracket Pairs of a StringNextLeetCode 1810. Minimum Path Cost in a Hidden Grid
Last updated