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 suggest you edit/extend the test cases. I've just submitted solution where the product (smallest multiple) was computed as 32bit int and I've passed all the test cases despite the fact that the product overflowed and the answer was wrong (see my first submission). Only later, I've played around with it and custom inputs and discovered that I need int64
Cheers,
Dmitry
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #5: Smallest multiple
You are viewing a single comment's thread. Return to all comments →
Hi shashank,
I suggest you edit/extend the test cases. I've just submitted solution where the product (smallest multiple) was computed as 32bit int and I've passed all the test cases despite the fact that the product overflowed and the answer was wrong (see my first submission). Only later, I've played around with it and custom inputs and discovered that I need int64
Cheers, Dmitry