1806. Count of Matches in Tournament
My accepted Python solution to LeetCode problem 1806, Count of Matches in Tournament, running in 42ms.
- Difficulty: Easy
- Python
- Runtime 42ms
- Memory 17.1MB
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
Python
Accepted on LeetCode — runtime 42ms, memory 17.1MB, accepted 2025-12-30.
class Solution:
def numberOfMatches(self, n: int) -> int:
return n - 1