2 Comments
Feb 6Liked by PuzzledQuant

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
author

its perfect

Expand full comment