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.
second test case can't be solved with javascript without special package for big numbers (at least it there no some numerical trick, which i do not know) as for x = 62, 67 etc. looks like some arithmetics give wrong results.
My solution gives wrong answers for second test case while using regular operations, and correct answers when use 'big-integer' package
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
A Very Special Multiple
You are viewing a single comment's thread. Return to all comments →
second test case can't be solved with javascript without special package for big numbers (at least it there no some numerical trick, which i do not know) as for x = 62, 67 etc. looks like some arithmetics give wrong results. My solution gives wrong answers for second test case while using regular operations, and correct answers when use 'big-integer' package