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.
If there is no number to meet the conditions or HAVE MORE THAN ONE NUMBER TO MEET THE CONDITIONS, return null. 4, 8, and so on is also a correct answer, so theres multiple answer and should return null
Most likely it indicates that your code runs out of time, as the input n is in range [0, 10e6] and (10e6)! has more than 50e7 digits. Both computing n! (multiplying for big integer is expensive too) and extracting digits from n! by dividing 10 forms performance bottleneck.
This comment is hidden because it contains spoiler information about the solution
fixed
Thanks :)
title should be corrected to "Factor_ial_ Digits" to be more clear
Ruby translation kumited -- please check and approve (note: author is inactive)
hint: google
tips pls help
very cool jordan!
If there is no number to meet the conditions or HAVE MORE THAN ONE NUMBER TO MEET THE CONDITIONS, return null. 4, 8, and so on is also a correct answer, so theres multiple answer and should return null