Expected Value
CodeChefOpen on judge ↗
Yadav is really fond of Maths, but is terribly weak at statistics and probability. His rival, Bathla, tries to exploit this fact whenever he can. This time as he runs into Yadav, he challenges him to find the expected value of the sum of 4 numbers chosen randomly from a list of n given numbers. Now, fortunately for Yadav, he was speaking to you on his earpiece. So, he needs you to find the answer
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start