Ezvor

1874. Minimize Product Sum of Two Arrays

MediumArray Preparing judge… LeetCode
ArrayGreedySorting

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?