Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Nice one :)
I have a guess... do you separate the cards by their team? If so, you might be missing the case that the game ended abruptly because one team is down to 6 men. You might be counting cards that should be ignored... if they came after the game stopped
Maybe I am not getting something here, this is another example
[ 'A6R','A7Y','A8R','A10Y','A3Y','A9R','A8Y','A10R','A10Y','A6R','A5Y' ]
[ 'B2Y','B9R','B3R','B11Y','B8Y','B5Y','B10Y','B1R','B5Y','B2Y','B7R','B5Y','B7Y','B2Y' ]
Expected: [8, 6], instead got: [7, 6]
Not sure what's the problem... The return has 2 items, [10,11] - because team B still have 11 players.
The language is javascript
It should return (10,11) -
10 players on team A because player #5 is out for 2 yellow cards
11 players on team B (none received any card)
BTW - where did you see this case? I don't see it in the test-cases. What language?
Hi guys,
can someone explain to me why
[ 'A5Y', 'A9Y', 'A6Y', 'A3Y', 'A5Y' ] will return 11 players ?
Thanx
Which language?
Perhaps 'n' should be revealed on a failure in the random tests?
When you get a random test wrong, the test framework apparently reports a truncated 32-bit signed result (my guess) instead of the expected 64-bit unsigned result for the failed test.
Fixed, Thanks.
There's a fixed test with n = 101101291, and the random tests seem to take it even further.
Screenshot is not showing for me too :)
loool