Skip to content

1688. Count of Matches in Tournament 👍

  • Time:
  • Space:
1
2
3
4
5
6
class Solution {
 public:
  int numberOfMatches(int n) {
    return n - 1;
  }
};
1
2
3
4
5
class Solution {
  public int numberOfMatches(int n) {
    return n - 1;
  }
}
1
2
3
class Solution:
  def numberOfMatches(self, n: int) -> int:
    return n - 1