Am I right in thinking the probability of 4:1 with p=0.5 is 5C1*(0.5^4)*(0.5^1) which is 0.15625? The answer says it is 0.125?
Yes, deserves translations to the usual languages.
assertSimilar is deprecated, use assertDeepEquals
I think it should be len(bools) instead of sum(bools).
cuz the items you put in the bools are string and they cannot be summed.
But I don't know if it is right or not :)
always getting this error -> ModuleNotFoundError: No module named 'codewars_test'
i think not testing for edge cases is doing learners a disservice. but ok, I commented it out
You can add example tests yourself. Or is it too hard to write more test cases?
COBOL translation (author inactive).
wow it is hard to understand on look
math is cheating
added instructions in initial code ...
I added real random tests and updated to Node 12.
After five years it's probably irrelevant, but you were almost certainly thinking about this kata or this kata