code (https://ide.codingblocks.com/s/429248) passes only 1 test case
Broken calculator
hello @mahima
we cannot store factorial of large numbers in primitive datatype like int,long long becuase factorial can be really large and storing it in primitive datatype will cause range overflow.
use array to store factorial
pls refer this for more detail ->link
but this is not the optimized way. Can you please share the optimized code link?
for long factorials we use this method only, there is not other method