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.
python new test framework is required. updated in this fork
JS: Random test rarely generate descriptive numbers.
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled, see this to learn how to do it
Ruby 3.0 should be enabled.
Ruby 3.0 should be enabled.
At least in JS: missing edge case tests to distinguish between
sum < num
andsum <= num
(for instance,4
and496
).30 laps on softs give
46.12772059958206
seconds, that's more than 1 pit stop takes.The top voted Javascript solution is wrong. It fails this simple test:
Instead it returns true, as it only tests for amicability in one direction. Although the proper factors of 8 add up to 7 (
1 + 2 + 4 = 7
), the only proper factor of 7 is (1
).I marked this as an issue with the kata, since the kata test cases only require that the solution tests for amicability in one direction. What is missing are tests like this: