Solution Review: Find the Greatest Common Divisor
This review provides a detailed analysis of the solution to find the greatest common divisor.
We'll cover the following...
We'll cover the following...
Solution: Using Recursion
Explanation
The brute force approach to finding of numbers would be to list all their divisors, pick the common divisors, and then select the greatest of them. However, a mathematical simplification can make this task easier.
The process of calculating is as follows: If , then ...