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
Its idomatic ruby. Your solution has 11 lines and introduces extra (and complex!) method.