Problem 1979 · Easy

Find Greatest Common Divisor of Array

Return the greatest common divisor of the smallest and largest values in an array. The visual scans for the minimum and maximum, then runs Euclid's steps.

Open the interactive visualisation