We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Count Scorecards
Count Scorecards
Sort by
recency
|
13 Discussions
|
Please Login in order to post a comment
Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Count Scorecards Problem Solution
Here is Count Scorecards problem solution in Python Java C++ and C programming - https://programs.programmingoneonone.com/2021/07/hackerrank-count-scorecards-problem-solution.html
This is unsolvable in javascript unless you implement an extremely efficient algorithm. IT TIMEOUTS EVERY SINGLE TIME!
Please explain module 10^9 +7
I don't see how it relates to the problem, or the sample output
I came to ask exactly the same but I see no one has answered your post. Did you ever found out why that is in the problem enunciation?
No.
Hard for me to tell with the Hackerrank user interface, but I don't think I attempted it. Maybe for that reason
I found this in another challenge and it offers a better explanation:
I attempted the challenge and I have the right answers for the first cases but as others have stated before, once you start handling a larger number of players you need a better way to eliminate possible but invalid score cards.
I think, results for 2nd and 5th are wrong.
For example for 2nd, why there can't be result 0 0 3 or 3 0 0 or 0 3 0? So, only one player win all the matches. That's why there are 3 more posibilities.
cause every player will have match with other players only once. Let,s say player A,B,C. A will have match only with B and C. so he can win only 2 times. possible matches will be between: AB AC BC so you can clearly see that no player is having 3 matches. I hope it helps!