You are viewing a single comment's thread. Return to all comments →
Any hint to why i'm getting wrong answer on all testcases except 0, 18 and 19
I found my mistake, the digital sum can be higher than 1000 with bases bigger than 10
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Project Euler #119: Digit power sum
You are viewing a single comment's thread. Return to all comments →
Any hint to why i'm getting wrong answer on all testcases except 0, 18 and 19
I found my mistake, the digital sum can be higher than 1000 with bases bigger than 10