An array A having N elements. I want to check if there is any subset of A whose GCD is G.
A=[2 4 5 6 7 8]
This is a question of an ongoing contest
Please wait for the contest to finish