Category: Math & Number Theory
Difficulty: beginner
Description: Euclid's algorithm for GCD
Time Complexity: O(log(min(a,b)))
Space Complexity: O(1)