← All problemsSign in

Astral Universe

"Going Astral Guys .... !!!" — Astra Astra’s universe is a one dimensional universe , where the universe starts from position $1$ and ends at position $N$. There can be two types of stars in this universe : Type 1 star Stars which can move to position $X-1,X+1$ or choose not to move if they are originally at position $X$. However they can move atmost once, and it cannot leave the universe

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