Leetcode #2448 Minimum Cost to Make Array Equal
Mar 16, 2024 · 3 min read · 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 ...
Join discussion
