2029. Minimize Product Sum of Two Arrays

Medium
Array
Greedy
Sorting

Description

Hints

Hint 1
Is there a particular way we should order the arrays such that the product sum is minimized?
Hint 2
Would you want to multiply two numbers that are closer to one another or further?

Statistics

Acceptance
89.9%
Submissions
28,057
Accepted
25,213