You are given two positive integers. Find their greatest common divisor, the largest integer that divides both numbers.
This problem is part of Hashing practice and is designed to strengthen the Frequency Map pattern.
Return one integer: gcd(a, b).
Input:
54 81
Output:
27
Explanation:
1 <= a, b <= 10^9Implement the starter function for this Easy problem. Read from the raw input string and return only the required answer, with no labels or debug text.
Run Code checks the visible sample cases. Submit checks those samples plus additional hidden cases that follow the same input format and constraints.
54 81
27