Skip to content
  • Sponsor codedecks-in/LeetCode-Solutions

  • Notifications You must be signed in to change notification settings
  • Fork 422

1688. Count of Matches in Tournament #489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions C++/Count-of-Matches-in-Tournament.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class Solution {
public:
int numberOfMatches(int n) {
return n - 1;
}
};
5 changes: 5 additions & 0 deletions Java/Count-of-Matches-in-Tournament.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Solution {
public int numberOfMatches(int n) {
return n - 1;
}
}
7 changes: 7 additions & 0 deletions JavaScript/Count-of-Matches-in-Tournament.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* @param {number} n
* @return {number}
*/
var numberOfMatches = function(n) {
return n - 1;
};
3 changes: 3 additions & 0 deletions Python/Count-of-Matches-in-Tournament.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Solution:
def numberOfMatches(self, n: int) -> int:
return n - 1
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -515,6 +515,9 @@ DISCLAIMER: This above mentioned resources have affiliate links, which means if
| [Shrimadh V Rao](https://github.com/Shrimadh) <br> <img src="https://avatars.githubusercontent.com/u/64469917?v=4" width="100" height="100"> | India | C++ | [GitHub](https://github.com/Shrimadh)
| [Shreyas Shrawage](https://github.com/shreyventure) <br> <img src = "https://avatars.githubusercontent.com/u/55741087?v=4" width="100" height="100"> | India | Python | [CodeChef](https://www.codechef.com/users/shreyventure)<br/>[LeetCode](https://leetcode.com/shreyventure/)<br/>[HackerRank](https://www.hackerrank.com/shreyas_shrawage)
| [Surbhi Mayank](https://github.com/surbhi2408) <br> <img src="https://avatars.githubusercontent.com/u/58289829?s=400&u=68fd396819b927ec4d8820d87d6d1e311c3abd01&v=4" width="100" height="100"> | India | C++ | [GitHub](https://github.com/surbhi2408)
| [Leo](https://github.com/Krolck) <br> <img src="https://avatars.githubusercontent.com/u/174736003?v=4" width="100" height="100"> | USA | Python | [GitHub](https://github.com/Krolck)


<div align="right">
<b><a href="#algorithms">⬆️ Back to Top</a></b>
</div>