Space Wrap
CodeChefOpen on judge ↗
Discovery One is trapped in a space anomaly of size $N$ X $N$ X $N$. The anomaly makes it such that, if a person reaches the end surface and tries to escape this 3D space, they are teleported to the opposite side, like the 90's snake mobile game. The spaceship can only go from one co-ordinate to another and moves one co-ordinate at a time. The space ship can go $UP$, $DOWN$, $NORTH$, $EAST$, $WEST
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.
Sign in to chat with the tutor and save your progress.
Sign in to start