← All problemsSign in

Jon and Bruce

Bruce’s friend Jon came up with a problem, where he was given a decimal number $N$ and he has to find the number of digits of the equivalent $B$ base number. $B \ge 2$. Base signifies the number of symbols in a number system. Like **Binary**(base=$2$) systems have two symbols $(0, 1)$, **Octal**(base=$8$) systems have $8$ symbols $(0, 1, 2, ....., 7)$, so a $B$ base system has $B$ number of symbo

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start