Easiest One-Liner || Easy to understand.
Approach\n Describe your approach to solving the problem. \nIf the GCD of all the elements of the array is equal to 1, return True\n\n# Complexity\n- Time compl
# Approach\n<!-- Describe your approach to solving the problem. -->\nIf the GCD of all the elements of the array is equal to 1, return **True**\n\n# Complexity\n- Time complexity: **O(n)**\n\n- Space complexity: **O(1)**\n\n# Code\n```\nclass Solution:\n    def isGoodArray(self, nums: List[int]) -> bool:\n        return True if math.gcd(*nums)==1 else False\n```
['Python', 'Python3']