โ back to unit
Challenge
# puzzle gauntlet advanced
The Tournament Bracket
Sixteen players, one bracket, no mercy: neighbors pair off, winners advance, repeat until a champion stands. ๐
You get the players as name:skill (a power of two of them, all skills different; higher skill wins). Round one pairs the 1st vs 2nd, 3rd vs 4th, and so on; winners keep their order into the next round. Print the champion's name.
Example:
Input: players = ["ana:5", "bo:3", "cy:9", "dee:1"]
Output: cy
Round 1: ana(5) vs bo(3) โ ana wins; cy(9) vs dee(1) โ cy wins. Round 2: ana(5) vs cy(9) โ cy wins, becoming champion.
๐ก need a hint?
pg-tournament-bracket.py๐ given lines are locked โ write your code in between
loading...