1.

Euclid’s algorithm is used for finding ___________(a) GCD of two numbers(b) GCD of more than three numbers(c) LCM of two numbers(d) LCM of more than two numbersI had been asked this question in a national level competition.This interesting question is from Number Theory topic in division Number Theory of Data Structures & Algorithms II

Answer»

The correct option is (a) GCD of TWO numbers

To explain: EUCLID’s algorithm is basically USED to find the GCD of two numbers. It cannot be DIRECTLY APPLIED to three or more numbers at a time.



Discussion

No Comment Found

Related InterviewSolutions