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.
The official documentation for fractions doesn't say a word about multiplication working on Fraction object or that it produces simplified results by default. You'd think that'd be something that would be mentioned in the problem statement instead of mentioning gcd, which is a red herring.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Reduce Function
You are viewing a single comment's thread. Return to all comments →
The official documentation for fractions doesn't say a word about multiplication working on Fraction object or that it produces simplified results by default. You'd think that'd be something that would be mentioned in the problem statement instead of mentioning gcd, which is a red herring.