2 Comments

Wanted to share another solution, considering the min and max value of X we have:

X_min => when K = 8 then X_min = 11111111

X_max => when K = 0 then X_max = 99999999

as to calculate the expected value we can simply find the average of the 2 extreme values

E[X] = (11111111 + 99999999) / 2 = 55555555

let me know if this helps 😊

Expand full comment

its perfect

Expand full comment