← All problemsSign in

CATCH THE ENEMY

CATCH THE ENEMY Thor is chasing a enemy. Initially, thor is at point (0,0). He should jump from a point to another point in order to reach the point(x,y) where enemy is located. But there are certain conditions in order to reach at enemy's location. First jump thor can make is of 1 unit. Second jump 2 units, third 4 units and so on. Also Thor should reach exactly at particular point where enemy

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