Optimal Array Rounding with Sum Preservation

medium
Optimal Array Rounding with Sum Preservation - Coding Problem | K5kC