← All problemsSign in

Power of Rinnegan

Sasuke has awakened Rinnegan in his left eye. Now he has many supernatural abilities. One of the many special abilities of Sasuke's Rinnegan is to shift spaces within a certain distance from himself. He can also carry other persons with him while shifting, but there is a limit to the number of persons he can carry at a time. He is going from a point 1 to a point N in space following a certain path

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