InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is coprime number?(a) 54 and 24(b) 4 and 8(c) 6 and 12(d) 9 and 28This question was posed to me by my college director while I was bunking the class.This is a very interesting question from GCD LCM Recursion, in chapter Recursion of Data Structures & Algorithms II |
|
Answer» RIGHT CHOICE is (d) 9 and 28 Easy explanation - Coprime numbers have GCD 1. So 9 and 28 are coprime numbers. While 54 and 24 have GCD 6, 4 and 8 have GCD 4, 6 and 12 have GCD 6. |
|