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.
Using solution of yashdeora98294 makes all the tests passed.
However, it looks like there are errors.
For example, the function shows that 4879 is not Kaprekar number while wikipedia say it is.
To be more specific:
4879*4879 = 23804641
and
238 + 4641 = 4879
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Modified Kaprekar Numbers
You are viewing a single comment's thread. Return to all comments →
Using solution of yashdeora98294 makes all the tests passed. However, it looks like there are errors. For example, the function shows that 4879 is not Kaprekar number while wikipedia say it is. To be more specific: 4879*4879 = 23804641 and 238 + 4641 = 4879