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.
Hint: You're not meant to calculate the factorial. Find another way to find the number of zeros.
n=1000000000
in one of the tests. Calculating the factorial of this number will take an incredible amount of time no matter how fast your computer is. This means this isn't possible to calculate it - try another approach without trying to calcuate the factorial.Sorry guys! I didn't know. Should have checked for that ahead of time. Cheers!
Duplicate:
http://www.codewars.com/kata/narcissistic-numbers
First guess is right, but I would try another approach, like solving the kata with another path...
I'm guessing it automatically fails if it takes longer than 7000ms to finish. How can we improve the efficiency of the permutation method in ruby?
Seems a duplicate.
Why would we need to look for spaces
Well, this solution is definitely wrong. Look for spaces.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution