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.
I think they should make a version where they prohibit the use of big integers like Integer in Haskell. It is also worth mentioning there is a solution without factorizing integers to prime powers like in the official editorial solution. If you do it this way you really have a great problem + solution. Despite that, a solution in Python or C would be much easier to program.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Huge GCD
You are viewing a single comment's thread. Return to all comments →
I think they should make a version where they prohibit the use of big integers like Integer in Haskell. It is also worth mentioning there is a solution without factorizing integers to prime powers like in the official editorial solution. If you do it this way you really have a great problem + solution. Despite that, a solution in Python or C would be much easier to program.