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.
Can you please change the test to disallow using the
.prime_division
methodThis comment is hidden because it contains spoiler information about the solution
It needs to include some tests! (for ruby at least)
Why is this 5kyu? It's super-easy (at least in ruby) if you don't go down any rabbit holes.
Yet another kata where the best solution is essentially just "find the right method in the standard library :(
Since you've done that, can you also make it so that the "upcase" method can't be used? Or is the point just to use monkeypatching and not to actually implement an upcasing method?
I like how this defers responsibility for finding the data to a separate function, but I agree with @kke: monkeypatching Hash like this isn't good.
Why is this ranked high for best practice?
+2 for cleverness, +5 for one-line-ness, -8 for readability/maintainability
This comment is hidden because it contains spoiler information about the solution
I created a solution which didn't respect the "must be alphanumeric" condition, yet it still passed. How do I report a bug in the tests?