Compute the Greatest Common Divisor of Two Integers with the Euclidean Algorithm
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Compute the greatest common divisor of two positive integers up to one billion with the Euclidean algorithm. It tests whether you can implement the remainder loop correctly, explain why it ends with the right value, and reason about how many steps it takes.