Challenge: Least Common Multiple

Solve the Least Common Multiple Problem.

We'll cover the following

Problem


Least Common Multiple Problem

Compute the least common multiple of two positive integers.

Input: Two positive integers aa and bb.

Output: The least common multiple of aa and bb.


Level up your interview prep. Join Educative to access 70+ hands-on prep courses.