Data Structures & AlgorithmsModerateTCS NQT · Accenture

Problem: The product of the first 6 positive odd numbers 1·3·5·7·9·11 is computed. What is that product's value modulo 100?

  1. A. 45
  2. B. 35
  3. C. 80
  4. D. 95

Correct answer: D. 95

1 · 3 · 5 · 7 · 9 · 11 = 10395, so the result is 95. Stopping at 9 (945) gives 45, adding 13 gives 135135 → 35, and the first six even numbers give 46080 → 80.

More Coding Interview Problems questions

Exams that ask this topic