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.
Someone's hint about inadvertently using an integer in the main loop turned out to work for me too against the time-out.
Anyway, by the time I noticed that I had a working code for performing binary search for exponents rather than looping up. Overkill for sure, but a fun exercise all in all.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Counter
You are viewing a single comment's thread. Return to all comments →
Someone's hint about inadvertently using an integer in the main loop turned out to work for me too against the time-out. Anyway, by the time I noticed that I had a working code for performing binary search for exponents rather than looping up. Overkill for sure, but a fun exercise all in all.