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.
If someone out there is having any issues with some of the test cases even though their solution is correct you might want to look at the constraints, using a integer then converting that to string to store your sum is not the move, it will work but not for some of the test cases, it might be worth making your sum append to a string or list and see it that pass some of the test cases.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Recursive Digit Sum
You are viewing a single comment's thread. Return to all comments →
If someone out there is having any issues with some of the test cases even though their solution is correct you might want to look at the constraints, using a integer then converting that to string to store your sum is not the move, it will work but not for some of the test cases, it might be worth making your sum append to a string or list and see it that pass some of the test cases.