Guys, help me understand this problem lets thinks number are 2,4,7 then the gcd is not 1 for 2 and 4 but we can delete one element then the gcd of all number is 1 so output should be 1 but in explanation of the program it is written that output can bre only 0 and 1.

Please explain

Share question link

yeah, share a link to the question. also send your code if you’ve tried

I think it is on google given an array remove minimum no. of elements such that the resultant gcd is greater than previous total gcd … isn’t it ?