Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
0x445442
· 6y ago · 0 comments
It's even easier than that... return players - 1. The trick is knowing in any single elimination tournament in order for there to be one winner there must be n - 1 losers.
edit: Also, I'm not sure your solution works for 13 players.
Comments
[–]
sirsar
6y ago
I wrote that it was `n-1` in my comment. Doesn't seem like much of a trick to me.