u should divide with the greatest common divisor not with the smallest element.
So first find the gcd of all the numbers in the array and then divide each element in the array with this gcd
thanks… u got it right!
u should divide with the greatest common divisor not with the smallest element.
So first find the gcd of all the numbers in the array and then divide each element in the array with this gcd
thanks… u got it right!