You are viewing a single comment's thread. Return to all comments →
can any one advice how to get better run time for gcd() function
In many languages, there are inbuilt functions for calculating gcd. Use them.
... or don't use gcd at all.
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Project Euler #73: Counting fractions in a range
You are viewing a single comment's thread. Return to all comments →
can any one advice how to get better run time for gcd() function
In many languages, there are inbuilt functions for calculating gcd. Use them.
... or don't use gcd at all.