Data Structures & AlgorithmsHardGATE CS · ICPC regional

What is the smallest positive integer x such that 180 * x is a perfect cube?

  1. A. 120
  2. B. 150
  3. C. 200
  4. D. 300

Correct answer: B. 150

180 = 2^2 * 3^2 * 5, so the exponents must each be raised to a multiple of 3: x = 2 * 3 * 5^2 = 150.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic