leetcode.com 2026-07-18
🟢1979.find-greatest-common-divisor-of-array
🏷️ Tags
#array #math #number_theory
🟢1979.find-greatest-common-divisor-of-array
🏷️ Tags
#array #math #number_theory
Telegraph
find-greatest-common-divisor-of-array
Given an integer array nums, return the greatest common divisor of the smallest number and largest number in nums. The greatest common divisor of two numbers is the largest positive integer that evenly divides both numbers. Example 1: Input: nums = [2,5…