- 1
Hello! I would like to know how powerful lap I have to have to compute N! for numbers 30, 100, 1000 and 100000.
https://code.sololearn.com/cvjknmLhN99I/?ref=app Because I can't compute these numbers with sololearn app. And so solve this problem.
5 ответов
+ 1
firstly this is a codewars kata: that's not allowed to be helped for such problem neither by sololearn nor by codewars ^^
however, here is a hint: brute force will not work for such kind of problem, and powerful of your computer will not change anything, as in sololearn as in codewars, scripts are executed on server side ;P
anyway, factorial result of such numbers will quickly overflow the numbers range limit...
0
I code on the android 5 phone.
0
no matter on what device you code: this problem must be solved with smart algorithm wich avoid computing the factorial...
0
no, you must find it by yourself, else it's cheating ^^
- 1
Can you tell me more about smart algoritem?