Simle one line code


#1

int Solution::gcd(int A, int B) {
return B==0?A:gcd(B,A%B);
}