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.
It's not giving your desired result because your example has "takes" instead of "sekat". Your example: "only tneserp with srettel the and the or tsisnoc dedulcni will same be takes word"
Hint: You're not meant to calculate the factorial. Find another way to find the number of zeros.
I tried using Ramanujan's factorial formula (as it was supposed to give me the result without iteration or recursion) but that too didn't help. So as you suggested, there is another way to calculate the number of trailing zeros without finding the factorial. Will try that.
Hint: You're not meant to calculate the factorial. Find another way to find the number of zeros.
This comment is hidden because it contains spoiler information about the solution
All my test cases pass and I get this error :
Help!!
Test Results:
✔ Test Passed
✔ Test Passed
✔ Test Passed
✔ Test Passed
✔ Test Passed
✔ Test Passed
STDERR:
Traceback:
in
in zeros
MemoryError
Why does it fail for : only tneserp with srettel the and the or tsisnoc dedulcni will same be takes word
It should return : only present with letters the and the or consist included will same be takes word
But error is shown.