Simple C++ Solution Beats 100%
Code\ncpp []\nclass Solution {\npublic:\n    bool isGoodArray(vector<int>& nums) {\n        int a = nums[0];\n        for(int i : nums)\n            a = gcd(a, 
# Code\n```cpp []\nclass Solution {\npublic:\n    bool isGoodArray(vector<int>& nums) {\n        int a = nums[0];\n        for(int i : nums)\n            a = gcd(a, i);\n        return a == 1;\n    }\n};\n```
['C++']