1.

Is lcm an associative function.(a) True(b) FalseThis question was posed to me by my college director while I was bunking the class.This intriguing question originated from GCD LCM recursion in division Recursion of Data Structures & Algorithms II

Answer»

The correct choice is (a) True

Easy EXPLANATION - The LCM function is an associative function as lcm (a, lcm (B, c) is EQUAL to lcm (lcm (a, b), c).



Discussion

No Comment Found

Related InterviewSolutions