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.
AHA! So I was misunderstanding the instructions. I was interpreting it as "No elements of the subset share a common denominator", but rereading the condition it is quite clear that it's actually "No common denominator shared by all elements (other than 1)". This would make your answer correct. THANK YOU SO MUCH!
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 →
AHA! So I was misunderstanding the instructions. I was interpreting it as "No elements of the subset share a common denominator", but rereading the condition it is quite clear that it's actually "No common denominator shared by all elements (other than 1)". This would make your answer correct. THANK YOU SO MUCH!