During a tournament, there are n teams ranked from n, where n is the weakest team.
The tournament matches are arranged in rounds. In each round, the strongest remaining team is paired with the weakest remaining team, the second strongest is paired with the second weakest, and so on. Every pair is formatted as (strongest,weakest).
This pairing process repeats round by round until only a single final match remains.
Given the integer n, return the tournament match structure as a string.
Constraints:
n x is in the range
During a tournament, there are n teams ranked from n, where n is the weakest team.
The tournament matches are arranged in rounds. In each round, the strongest remaining team is paired with the weakest remaining team, the second strongest is paired with the second weakest, and so on. Every pair is formatted as (strongest,weakest).
This pairing process repeats round by round until only a single final match remains.
Given the integer n, return the tournament match structure as a string.
Constraints:
n x is in the range