Python3 one line
Calculate the GCD of all numbers in this array.\n\nfrom math import gcd\nfrom functools import reduce\nclass Solution:\n    def isGoodArray(self, nums: List[int
Calculate the GCD of all numbers in this array.\n```\nfrom math import gcd\nfrom functools import reduce\nclass Solution:\n    def isGoodArray(self, nums: List[int]) -> bool:\n        return reduce(gcd, nums) == 1\n\t\t\n```
[]