Sollicitatievraag bij Bloomberg

implement how to get the least common multiple(coding)

Antwoord op sollicitatievraag

Anoniem

4 mrt 2012

the LCM=number1/gcd*number2/gcd*gcd the gcd may be found using euclid's algorithm for finding gcd see wikipedia for the algorithm.