Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 239 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 239 Bytes

Euclid's GCD

Write a function with type:

gcd : int -> int -> int

that computes the GCD of two non-negative numbers, according to the subtraction-based Euclid's algorithm.