I have an array of numbers and their gcd if one element is deleted from the array then is it possible to get the new gcd without iterating over all the elements in the array.
e.g the array is 3 6 6 12 clearly the gcd is 3
now if 3 is deleted from the array then the new array becomes 6 6 12 and the gcd is 6
Note: The array may contain duplicates and when the number is deleted then only one instance of that number is deleted from the array.