Second Player
There are $N$ players participating in a knockout tournament. The $i$-th player has the rating $A_i$. No two players have the same rating. $N-1$ matches are played in the tournament. In each match, $2$ random players are chosen out of the remaining players, and the player with the higher rating wins. The losing player gets eliminated from the tournament. Can you find out the expected rating of t
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