LeetCode solutions

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

Read the problem on LeetCode View on GitHub

Python

Accepted on LeetCode — runtime 42ms, memory 17.1MB, accepted 2025-12-30.

python
class Solution:
    def numberOfMatches(self, n: int) -> int:
        return n - 1

Source