LeetCodeCount of Matches in TournamentCount of Matches in TournamentEasyMathSimulationSolution export function numberOfMatches(n: number): number { /** * As n - 1 teams will be eliminated, there will be n - 1 matches played, * with each match eliminating a team. */ return n - 1; }LeetCodeCount of Matches in Tournamenthttps://leetcode.com/problems/count-of-matches-in-tournament