问题:
Two nonnegative integers a and b are not both zero. Compute GCD(a,b), the greatest common divisor of a and b.
解答:
1.
2.Euclid's algorithm
3. modified Euclid's algorithm
问题:
Two nonnegative integers a and b are not both zero. Compute GCD(a,b), the greatest common divisor of a and b.
解答:
1.
2.Euclid's algorithm
3. modified Euclid's algorithm