← All problemsSign in

Titan Gods

On Titan, the moon of planet Jupiter, there are N craters that exist on a straight line of length N-1 units. For simplicity lets number them from 1 to N and further assume that adjacent craters are separated by exactly 1 unit. The Titan Gods which are a total of M in number decide to play in this arena of craters by moving from one crater to another. The protocol that they follow while moving a

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