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.
This comment is hidden because it contains spoiler information about the solution
Found a way to solve it through string in like, 2 minutes, but knew it was too easy and I was right, my solution could work with very small number but as soon as it surpass the limit of the data type i used in C it started to be inaccurate... After some research i realized it was just a problem based on a math trick, i am kinda dissapointed, but I still had some fun solving it for small numbers!
I found the solution thank you
i mean, have you tried it on your computer ? check out the sample tests, there is a call
zeros(1000000000)
. run that on your computer and see how that goes...It works . I passed all the tests but it doesnt allow me to submit. Probably i shouldn't have used the factorial but i imported the sys to expand the limit. I don't mean to waste your time. Thank you
the description tells you exactly why your current approach will not work.
not very helpful but thank you
please make sure to read the description carefully before raising issues...
This comment is hidden because it contains spoiler information about the solution
I can't solve this Kata nearly 6 month))) But eventually I got it!!!
How do you expect to pass
n = 1_000_000_000
with this?(JS) I found a way to find the amount of trailing zeros, but apparently the test cases are huge. Basic tests were barely passed in 8.8s, with many more random tests completely timing the code out.
Now what?
Is important to see the docu if kata offers to you ;)
This comment is hidden because it contains spoiler information about the solution
Challenging but fun and also surprisingly simple
Loading more items...