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
This comment is hidden because it contains spoiler information about the solution
Unnecessarily high time complexity O(n^2)
This comment is hidden because it contains spoiler information about the solution
No, I didn't gt that notice.
Haskell disappeared
Hi @JohanWiltink, in case you didn't get the notice it looks like this issue is keeping this kata in beta: https://www.codewars.com/kata/5f54b1454c2cc4001a662619/discuss/kotlin#5f5f81e0a8c08b0033c500f4
Edited.
Edited.
I haven't ( yet ) solved either of them, so for now I remain unconvinced.
If you get solutions, see if any approach works for both. If so, I'd say they're duplicates. If not, well, ok, but spell out the difference a little more in the descriptions.
That should do it, yes.
Actually, due to the differences in the input range, the solutions (at least mine) to these two problems completely differ, and each solution is not strictly better than the other. As you see, the
L
andm
(the size of the alphabet) in Ver 1 is greater than those in Ver 2, but in Ver 2n
is greater than in Ver 1 instead -- so I don't think they duplicate.Thanks for correcting me and sorry for my poor English. And IMHO, I think the following statement might be clearer:
How do you think about it?
Decide which of the two versions you want to keep, and unpublish the other. This way, they'll always be duplicates of one another.
Same as the other kata. "Possibility" is the wrong term. You probably want the multiplicative inverse of the reciprocal of the probability.
Loading more items...