Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Better than 🏌️ solution in Clear category for The Greatest Common Divisor by vincent.tscherter
var greatestCommonDivisor = (head, ...tail) => tail.reduce(
(a,c) => { while(c) [c, a] = [a%c, c]; return a; }, head)
Nov. 21, 2020
Comments: