Leetcode #2448 Minimum Cost to Make Array Equal
Read the question here: https://leetcode.com/problems/minimum-cost-to-make-array-equal/description/
Let the final array be [k, k, k, k, ...] (all the elements being equal to k)
k has to be in the range between min(nums) and max(nums)
If we can try ...
vibhu4agarwal.hashnode.dev3 min read