Data Structures & AlgorithmsHardGATE CS · Codeforces Div2 B

What is the greatest common divisor of 6, 24, 60, 120 and 210?

  1. A. 7
  2. B. 8
  3. C. 6
  4. D. 10

Correct answer: C. 6

The common factors of all five numbers are the divisors of 6, and 6 divides each of them. Taking the gcd pairwise and folding gives the same value.

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

Exams that ask this topic