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.
Op solved it, closing
Because {3,5} is a different dice roll than {5,3} - in the first instance, die 1 rolled 3 and die 2 rolled 5, whereas in the second instance die 1 rolled 5 and die 2 rolled 3. So the combination of 3 and 5 is counted twice because there are two different ways of achieving it.
{4,4} means die 1 rolled 4 and die 2 rolled 4. There isn't another way of getting both dice to show 4, so it's only counted once.
This comment is hidden because it contains spoiler information about the solution
Hi, I solved it but my question is why: P(8, 2) = 5/36 counts five ({4,4}, {3,5}, {5,3}, {2,6}, {6,2}) and not 6 that is {4,4} should be 2 times like {3,5} and {5,3}.
So the output should be 6/36. It's only my opinion.
If you have problems with precision and rounding while solving this kata, it means your approach is not completely correct.
This kata can be solved easily without floats, using only integers, and avoiding rounding errors this way. You were struggling with a problem which you brought upon yourself.
The kata is fine.
Had to hardcoded one of the basic test and also had to run test couple of times to pass all of them. Probaly problem with floating digits. Wasted time for this nonesens and this Kata.
And the description killed me: "Tortoises don't care about fractions of seconds" Heh BUT PYTHON DOES!!!!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution