Easy
Count of Matches in Tournament — Python
Full explanation · Time O(1) · Space O(1)
# Time: O(1)
# Space: O(1)
class Solution(object):
def numberOfMatches(self, n):
"""
:type n: int
:rtype: int
"""
return n-1