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.
Hangman('E', 'everything') ==> 'e_e_______'
Random tests consistently generate cases where at least two characters are not present. In fact, most of the test cases generate strings composed of underscores ('_') with random lengths.
Problems with typography and Markdown formatting:
# heading
not###heading###
The description should say what to do about corner cases:
"_A__B"
I think the description should simply say:
It is not clear from the description that the tests expect the output to be entirely lowercase regardless of the case of the input. I would suggest clarifying this in the description.
collor
->color
No random tests
Why is the function called
bob
?This series converges to
e-1
.e = \sum_{k=0}^{\inf} 1/k!
starting fom0
(not1
).Main issue:
Floats have limited precision, and are unable to exactly represent all needed values (only 18 different "
e
values" can be represented).https://docs.codewars.com/authoring/kata/floating-point/
https://docs.python.org/3/tutorial/floatingpoint.html
It's better to use
Fraction
orDecimal
.Other issues:
test.assert_approx_equals
fsum
, or at least from smaller to bigger.purposley
should bepurposely
Even though I think that your disclaimer is a bit useless, anyone who wants more test cases can just run the random tests.
Binary is a string made of integers, not a decimal number
In general, it would be beneficial to have inputs of one type and to have type definitions in initial solution.
Though, there is 99% probability that this kata will receive issue
trivial filter/map/reduce is not a novel idea
:PThere are no example tests in the attempt section
There is only one value in the initial solution
Loading more items...