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.
As stated in the __main__, user <wilmer_henao> assumes that you know the elements of frac are instances of the Fraction class. Feel free to read the Python API on it. Alternatively, here is my more explicit HackerRank replacement.
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 →
As stated in the
__main__
, user<wilmer_henao>
assumes that you know the elements offrac
are instances of theFraction
class. Feel free to read the Python API on it. Alternatively, here is my more explicit HackerRank replacement.