1688. Count of Matches in Tournament ¶ Time: Space: C++JavaPython 1 2 3 4 5 6class Solution { public: int numberOfMatches(int n) { return n - 1; } }; 1 2 3 4 5class Solution { public int numberOfMatches(int n) { return n - 1; } } 1 2 3class Solution: def numberOfMatches(self, n: int) -> int: return n - 1