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.
ah ha! wow - nice kata. If anyone wants a really vague hint, the solution is like rubbing your head while patting your belly.
Sure.
This comment is hidden because it contains spoiler information about the solution
Any plans for codewars to update to 1.53 so my answer can compile? :D
yes, it is not needed - explicit vs implicit choice.
Thank you @Chrono79 -- that makes sense why I was confused.
Relax hobo, please be kind, world is already an ugly place.
Your solution is buggy and it returns incorrect results. Now you can choose between hating on the kata, or learning what you did wrong and how to fix it. Your choice.
The problem of implicit conversions causing data loss is a real life problem which bites unaware programmers quite often. It's up to you to decide whether you want to know how to deal with it and fix it, or get upset over a problem which you yourself introduced.
https://www.calculatorsoup.com/calculators/discretemathematics/factorials.php
Scientific notation loses precision.
https://www.calculatorsoup.com/calculators/math/scientific-notation-converter.php?operand_1=2.65252859812e%2B32&action=solve
and google calculator says 30! = 2.65252859812e+32
calculator soup must have something else going on. Agree with others though, little too mathy on this one for my tastes.
From: https://coolconversion.com/math/factorial/What-is-the-factorial-of_30_
Seems like 7 zeros to me.
This comment is hidden because it contains spoiler information about the solution
I had a similar moment @crosssh, the test cases are a little ambiguous, if you comment out the first test case and remove your join you will see what is going on.
Yea I realize it's pretty easy to just edit them with individual it statements, not used to being able to edit the test cases. Codewars really does a good job.
For that you should have to write a single assertion for each
it
block. Either way, the error message tells you exactly which assertion you failed.Loading more items...