We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
two numbers can have gcd >1 but it is also possible tha two sets of numbers having gcd >1, when merged together produces gcd 1.
so check for whole vector
Cookie support is required to access HackerRank
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 →
two numbers can have gcd >1 but it is also possible tha two sets of numbers having gcd >1, when merged together produces gcd 1. so check for whole vector