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.
Thanks shamas.
Yes I found what to set as the upper boundary, it works for all bases.
The 32 test cases now complete without timing out. My problem now is that only 10 of them give the right answer, I wish I had one of the failed ones to see where is my error.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #156: Counting Digits
You are viewing a single comment's thread. Return to all comments →
Thanks shamas. Yes I found what to set as the upper boundary, it works for all bases. The 32 test cases now complete without timing out. My problem now is that only 10 of them give the right answer, I wish I had one of the failed ones to see where is my error.