Again Power of Two
CodeChefOpen on judge ↗
You are given an integer $N$. In 1 step you can either delete any digit from the given number or include a digit to the right end of the number to make the given number a power of 2. You can perform the above operations any number of times. Find the minimum number of steps required to convert the given number to a power of 2. ### Input - First line of the input contains a single integer $T$ denot
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.
Sign in to chat with the tutor and save your progress.
Sign in to start