You are viewing a single comment's thread. Return to all comments →
For those who are confused about the wording: You should be focused on finding out if the elements in your array (A) have a GCD that is greater than 1. As mentioned by the moderator: the solution should be O(N)
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and GCD
You are viewing a single comment's thread. Return to all comments →
For those who are confused about the wording:
You should be focused on finding out if the elements in your array (A) have a GCD that is greater than 1.
As mentioned by the moderator: the solution should be O(N)