1383. Number of Single Divisor Triplets

Medium
Math

Description

Hints

Hint 1
The maximum value of nums.length is very large, but the maximum value of nums[i] is not.
Hint 2
Count the number of times each value appears in nums. Brute force through every possible combination of values and count how many single divisor triplets can be made with that combination of values.

Statistics

Acceptance
54.7%
Submissions
2,799
Accepted
1,531