← All problemsSign in

Aliens Of The Outer Space

The Planet Earth is under a threat from the aliens of the outer space and your task is to defeat an enemy who is $N$ steps above you (assume yourself to be at ground level i.e. at the $0^{th}$ level). You can take jumps in power of $2$. In order to defeat the enemy as quickly as possible you have to reach the $N^{th}$ step in minimum moves possible. ### Input - The first line of input contain a s

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