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.
A non-recursive solution can still pass the tests like this one
In the description, the third call should replace all values of
2
with3
The description needs better formatting as well
Ruby 3.0 should be enabled, see this to learn how to do it
Typo in description: For example, the head and tail results of a toin coss are mutually exclusive because they can't both happen at once. -> coin toss
JavaScript version needs random test cases
This comment is hidden because it contains spoiler information about the solution
Checking if the probabilit array is correct and calculating the probability of the OR event are two different responsibilities and should be in different functions/methods/kata.
Returning a float as a string is unneccessary, just request a rounded float.