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.
This comment is hidden because it contains spoiler information about the solution
I Had the same issue, how did you fix it?
It actually is relevant, because there are different rules when you play with more than one deck. Many solutions probably won't be affected, but I am sure there are certain solutions that rely on the fact that there are no duplicate cards to simplify certain steps.
Had a trouble too. Turns out I haven't assumed at the beginning that the default dierction is to the right.
That means this is the only test your code doesn't handle properly. With already more than one thausend completions, it would be known if there was an error in this test. I just checked that the java version of this test use the right input code and it's exactly the same than in python (355 completions), so the test is good as well as the expected value. Please review your code.
Damn me! Actually all is good on my side! x-D
you forgot (and I did too for the last minutes) that ships could be in diagonal, so the two
1
are actually the same boat (boat number 1, of size 2)Advise? No advise: my random generator is wrong! Good catch, working on it (I don't have much chance with this kata, today... x/ )
It is just test data so not really relevant, but for you I changed it anyway :)
Hi Eranha, in the details is clearly stated that there is no rank for the suit (read the last line).
Your second example should be read (without suit) as 'A6542' vs 'A6542', that is a tie.
If no digit works, well, that's bad news for the professor - it means that he's got some of his runes wrong. output -1 in that case.