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.
@nhomble I agree with that in a production world, but Codewars is supposed to be a challenge. A place to practice your algorithm skills. Using a library kinda defeats the purpose.
This is a beginner kata.
Ya, i agree
Agreed, this is way too easy for kata 5 !
Agree. It's like a 6.5 kyu imo.
I also think this is approx. 7 kyu. Too easy for 5 kyu (solved this in Python).
then again, it is good to expose ourselves to the standard library and not reinvent the wheel all the time :D
Can you please change the test to disallow using the
.prime_division
methodThis comment is hidden because it contains spoiler information about the solution
Its idomatic ruby. Your solution has 11 lines and introduces extra (and complex!) method.
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.
Loading more items...