Challenge: Greatest Common Divisor
Solve the Greatest Common Divisor Problem.
We'll cover the following
Problem
Greatest Common Divisor Problem
Compute the greatest common divisor of two positive integers.
Input: Two positive integers and .
Output: The greatest common divisor of and .
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.