← All problemsSign in

Thanos planet

After infinity gauntlet was destroyed, Thanos can travel limited distance for each usage of space stone. Now, Thanos wanted to return to his planet using space stone. But he cannot step into space between his current position and his planet there are few planets in between . So, find out minimum number of times Thanos has to use the space stone to reach his planet. Input -First line consist o

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