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 explanataion for this is that 25 contains digits 2 and 5 which are not possible in binary representation i.e. only 0 and 1. Thats why 25 is invalid for 2 as base in this scenario.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jim and the Jokes
You are viewing a single comment's thread. Return to all comments →
The explanataion for this is that 25 contains digits 2 and 5 which are not possible in binary representation i.e. only 0 and 1. Thats why 25 is invalid for 2 as base in this scenario.