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.
Approved
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
Input range needs to be specified. (Because apparently the input only goes up to
500
, which makes this kata extremely easy)Instructions mention it should return "Invalid date" but the tests are testing for "Invalid date!" (in those cases)
The approximation formula could use extra parentheses, to reduce ambiguity.
Currently, it says "π * (3/2(a+b) - sqrt(ab))"
Perhaps it should say "π * ((3/2)(a+b) - sqrt(ab))"
Just to be clear that it isn't 3/(2(a+b))
C Translation
Python, possibly other languages: tests miss sanity checks on values returned by user solution and crash badly when an unexpected value (not a pattern, or not a valid pattern) is returned.
This comment is hidden because it contains spoiler information about the solution
Updated to Node v14
JS: No random test
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
sorry, that task have one mistake:
Test.assertEquals(isSmithNumber(576), true);
but 576 isn't smithNumber
match consecutive characters.
\1
=== match the first captured group.Loading more items...