InterviewSolution
Saved Bookmarks
| 1. |
Which is the correct term of the given relation, lcm (a, b) * gcd (a, b) =?(a) |a*b|(b) a + b(c) a – b(d) a / bThe question was asked during an interview.This is a very interesting question from GCD LCM recursion topic in section Recursion of Data Structures & Algorithms II |
|
Answer» CORRECT answer is (a) |a*B| Explanation: The lcm is closely RELATED to GCD as lcm (a, b) * gcd (a, b) = |a*b|. |
|