xodhx4
5/17/2018 - 3:36 PM

Algorithm

snippet for algorithm

// Calculate gcd
int gcd(int a, int b) {
    return b == 0 ? a : gcd(b, a % b);
}