Data Structures & AlgorithmsModerateTCS NQT · Accenture

Problem: The product of the digits of 2^10 · 3^4 is computed (in decimal). What is that product?

  1. A. 2304
  2. B. 27
  3. C. 82944
  4. D. 576

Correct answer: A. 2304

2¹⁰ · 3⁴ = 82944, and 8 · 2 · 9 · 4 · 4 = 2304. 27 is the digit sum, 82944 is the number itself, and dropping one 4 gives 576.

More Coding Interview Problems questions

Exams that ask this topic