Design a fast algorithm to compute (n) ! for large values of (n), using Java's BigInteger class.

Question:

Design a fast algorithm to compute \(n\) ! for large values of \(n\), using Java's BigInteger class. Use your program to compute the longest run of consecutive \(9 \mathrm{~s}\) in 1000000 !. Develop and validate a hypothesis for the order of growth of the running time of your algorithm.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: