1185 - Big Number
Solution Description : Math problem you can use log10() method for calculate digit you need to pregenerate 10^7 value use a long type array example for calculate 5 is d=0.0 for i=1 to 5 ------d += log10(i) so digit for 5 is ceiling of d You can calculate all value except 1 |
||||||||||