You are given an integer array rolls of length m, representing the results of
You are also given an integer mean, which represents the average of all
Return an array of length n containing the missing roll values such that the average of all mean. If multiple valid configurations exist, return any of them. If no valid configuration exists, return an empty array.
Note: The mean of a collection of values is the sum of the values divided by the total count of values.
Constraints:
m rolls.length
n, m
rolls[i], mean
You are given an integer array rolls of length m, representing the results of
You are also given an integer mean, which represents the average of all
Return an array of length n containing the missing roll values such that the average of all mean. If multiple valid configurations exist, return any of them. If no valid configuration exists, return an empty array.
Note: The mean of a collection of values is the sum of the values divided by the total count of values.
Constraints:
m rolls.length
n, m
rolls[i], mean