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.
Provided test cases in the Ruby kata are incorrect.
28! is 304888344611713860501504000000; it ends in 6 zeros.
30! is 265252859812191058636308480000000; it ends in 7 zeros
36! is 371993326789901217467999448150835200000000; it ends in 8 zeros.
http://keisan.casio.com/calculator
JavaScript. Actually, I tried it again last night, and I was able to get it to work. Bizarre...
Can't access Math?
Getting syntax errors in Ruby - it's reporting a mysterious
\n
that it doesn't like and that I can't seem to find.This comment is hidden because it contains spoiler information about the solution
Damn, that's a beautiful solution. Didn't even occur to me to use .scan, and it makes way more sense to calculate averages using overall sums like this.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Tough to figure out what the test cases should be, beyond saying that cards should include certain specific strings like "ace of hearts", and so on.
Thanks!