InterviewSolution
Saved Bookmarks
| 1. |
What is the GCD of 8 and 12?(a) 8(b) 12(c) 2(d) 4I have been asked this question in an internship interview.Origin of the question is GCD LCM Recursion, in section Recursion of Data Structures & Algorithms II |
|
Answer» CORRECT OPTION is (d) 4 Easiest explanation - GCD is largest positive integer that divides each of the integer. So the GCD of 8 and 12 is 4. |
|