C++ Simple GCD Solution (60%)
Uses inbuilt GCD function and checks if the gcd of array is 1 or not.\n\nbool isGoodArray(vector<int>& nums) {\n        if (nums.size() == 0) return false;\n   
Uses inbuilt GCD function and checks if the gcd of array is 1 or not.\n```\nbool isGoodArray(vector<int>& nums) {\n        if (nums.size() == 0) return false;\n        else {\n            int g = nums[0];\n            for(int i=1; i<nums.size(); i++) {\n                g = __gcd(g, nums[i]);\n            }\n            if (g == 1) return true;\n        }\n        return false;\n    }\n```
['C++']