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.
The width of the "C" is 4 in description but 5 in tests.
.
.
.
Missing imports
When all issues are solved you can republish the kata.
At least javascript:
[a,b]
wherea
>b
(descritpion explicitly says that256
->[[8,2],...]
is valid).Duplicate?
tuple
/int
) is bad practice. If there isn't a valid result, the function should raise an exception or return a no-value likeNone
.elves
>cookies
.Python:
actual
is not a tuple.assert_approx_equals
iflen(actual) < 2
oractual[i]
is not a number(*)(*) IMHO this is a bug in
test_approx_equals
, it should fail without raising exceptions if the value is not a number.Python: function name should be snake_case
There is also
test.assert_equals(censor(),'')
without args.$\left\lfloor\frac{\hbox{(sum of integers)}}{\hbox{(an integer)}}\right\rfloor$
is the quotient of an integer division, no floats, no rounding problems.Loading more items...