Search
⌘K

Leetcode 2985. Calculate Compressed Mean

Given a list of pairs [value, frequency] representing a compressed array, compute the mean of the expanded array by returning sum(value * frequency) divided by sum(frequency); use appropriate numeric precision to avoid overflow or rounding issues.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.