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.
The part about the base is confusing. I solved the problem as given in Project Euler with a base of 10 by using some mathematical intuition. But I can't figure out how to use the same technique for a different base. Can anyone give some hints regarding how to handle the bases?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #119: Digit power sum
You are viewing a single comment's thread. Return to all comments →
The part about the base is confusing. I solved the problem as given in Project Euler with a base of 10 by using some mathematical intuition. But I can't figure out how to use the same technique for a different base. Can anyone give some hints regarding how to handle the bases?