diff --git a/C++/Count-of-Matches-in-Tournament.cpp b/C++/Count-of-Matches-in-Tournament.cpp new file mode 100644 index 00000000..44e1b61d --- /dev/null +++ b/C++/Count-of-Matches-in-Tournament.cpp @@ -0,0 +1,6 @@ +class Solution { +public: + int numberOfMatches(int n) { + return n - 1; + } +}; \ No newline at end of file diff --git a/Java/Count-of-Matches-in-Tournament.java b/Java/Count-of-Matches-in-Tournament.java new file mode 100644 index 00000000..d3c73e14 --- /dev/null +++ b/Java/Count-of-Matches-in-Tournament.java @@ -0,0 +1,5 @@ +class Solution { + public int numberOfMatches(int n) { + return n - 1; + } +} \ No newline at end of file diff --git a/JavaScript/Count-of-Matches-in-Tournament.js b/JavaScript/Count-of-Matches-in-Tournament.js new file mode 100644 index 00000000..6a000fe7 --- /dev/null +++ b/JavaScript/Count-of-Matches-in-Tournament.js @@ -0,0 +1,7 @@ +/** + * @param {number} n + * @return {number} + */ +var numberOfMatches = function(n) { + return n - 1; +}; \ No newline at end of file diff --git a/Python/Count-of-Matches-in-Tournament.py b/Python/Count-of-Matches-in-Tournament.py new file mode 100644 index 00000000..925993a5 --- /dev/null +++ b/Python/Count-of-Matches-in-Tournament.py @@ -0,0 +1,3 @@ +class Solution: + def numberOfMatches(self, n: int) -> int: + return n - 1 \ No newline at end of file diff --git a/README.md b/README.md index b2cac739..bb99060e 100644 --- a/README.md +++ b/README.md @@ -515,6 +515,9 @@ DISCLAIMER: This above mentioned resources have affiliate links, which means if | [Shrimadh V Rao](https://github.com/Shrimadh)
| India | C++ | [GitHub](https://github.com/Shrimadh) | [Shreyas Shrawage](https://github.com/shreyventure)
| India | Python | [CodeChef](https://www.codechef.com/users/shreyventure)
[LeetCode](https://leetcode.com/shreyventure/)
[HackerRank](https://www.hackerrank.com/shreyas_shrawage) | [Surbhi Mayank](https://github.com/surbhi2408)
| India | C++ | [GitHub](https://github.com/surbhi2408) +| [Leo](https://github.com/Krolck)
| USA | Python | [GitHub](https://github.com/Krolck) + +
⬆️ Back to Top