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.
Please add fixed tests with edge cases (see other languages)
What is duplicated origin points test?
in one test it says:
in another test it says:
As stated at Wikipedia:
So I think it should be mentioned in description that which method(1, 2, 3, or 4) should be used for calculating lower and upper quartile of a sequence with odd number of data.
This is a low kyu kata so values of input arguments should be printed for failed assertions (or for all assertions).
Sample tests fail with the following error message:
Older kata are usually ranked higher, and kata rating cannot be changed.
Resolving this suggestion.
I don't plan on getting this approved anymore, but I added it, they only go up to
1000
, no reason in going that big for a theory focused kata.I didn't add the values for
bet
orprize
because in theory they can go up to like1_000_000
but it never does and it doesn't really matter.I'm just solving the issue so I don't have it marked as a due issue on my profile.
You cannot claim that the probability of a coin landing heads is
heads / total
. If I threw a coin3
times and it didn't land heads in any of those, then it's reasonable to say that the coin is unlikely to roll heads, but not impossible.While I cannot tell you the actual value, you'll see that, while the probability is low, it's not zero, and it's good enough for the values of the bet.
Why the test
prediction(0, 3, 1, 6)
should beTrue
. obviously there is no chance to win any prize!With the Hint provided, I think it should be rated as 7kyu!