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.
You didn't get it. Here the set containing all 3 elements gcd is 1. Now try adding more numbers to this set and then calculate gcd of that set. You will always get gcd 1.
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 →
You didn't get it. Here the set containing all 3 elements gcd is 1. Now try adding more numbers to this set and then calculate gcd of that set. You will always get gcd 1.