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.
Awesome!
The method * of the Array class has two uses:
When its argument is a string (s), its equivalent to self.join(s) (s will separate the values of self)
When it's an integer (n), it returns the concatenation of the array self n times.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
"1\n0" is considered to be a digit?
In my opinion,you should define the #double_base_palindrome? method on the Integer class (because both Fixnum and Bignum inherit from that class),the usage would be : 555.double_base_palindrome?,much cleaner in my opinion.
With Ruby,it's very very easy to cheat,you removed the #% method from Fixnum,but you didn't remove the following methods:
#% in Float,solution : (x.to_f % y).to_i;
#% in Numeric,solution : (x.to_r % y).to_i;
#modulo in Fixnum,Float,Bignum and Numeric,soluton : http://www.codewars.com/kata/reviews/565f0e0c7a0894c20600002b/groups/566ff67d9873adb6de000029
(please remove it)
#divmod in Float,Fixnum,Numeric and Bignum,solution : x.divmod(y).last