Smart Mock Interview Logo
Get Started
algorithm
datastructure
Compute LCM and GCD of given integer numbers
Created by Smart Mock Interview

Computer LCM and GCD of given integet numbers

Interview Questions

  1. Compute LCM and GCD of given integer numbers
    coding

    Title:

    LCM and GCD of given integer numbers

    Example:

    Input: a = 5 , b = 10 Output: [10, 5] Explanation: LCM of 5 and 10 is 10, while their GCD is 5.