EuclideanSolver
public struct EuclideanSolver
Euclidean algorithm is a method for computing the Greatest Common Divisor of two numbers
-
Finds the Greatest Common Divisor (GCD) of
aandb.Check Euclidean algorithm for more details.
Declaration
Swift
public static func findGreatestCommonDivisor(_ a: Int, _ b: Int) -> IntParameters
aOne integer.
bOther integer.
Return Value
GCD of
aandb.
EuclideanSolver Structure Reference