- 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.

25th Jun 2021, 6:02 PM
TeaserCode
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...
25th Jun 2021, 7:41 PM
visph
visph - avatar
0
I code on the android 5 phone.
26th Jun 2021, 3:07 AM
TeaserCode
0
no matter on what device you code: this problem must be solved with smart algorithm wich avoid computing the factorial...
26th Jun 2021, 3:08 AM
visph
visph - avatar
0
no, you must find it by yourself, else it's cheating ^^
26th Jun 2021, 3:23 AM
visph
visph - avatar
- 1
Can you tell me more about smart algoritem?
26th Jun 2021, 3:21 AM
TeaserCode