Java Solution || Easy to understand
\nclass Solution {\n    public boolean isGoodArray(int[] nums) {\n        int result=nums[0];\n        for(int i=1;i<nums.length;i++){\n                result=G
```\nclass Solution {\n    public boolean isGoodArray(int[] nums) {\n        int result=nums[0];\n        for(int i=1;i<nums.length;i++){\n                result=GCD(nums[i],result);\n        }\n        return result==1;\n    }\n    static int GCD(int i,int j){\n        if(j==0) return i;\n        return GCD(j,i%j);\n    }\n}\n```\n**Please upvote if u like it**
['Math', 'Java']