← Questions

Robot battle where each robot attacks its nearest neighbor

0
PikaCodingLast asked Jun 2025

Robots stand in a row; health[i] is the health of the robot at position i. The battle goes in rounds.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 3 credits: each one unlocks a question for good.

Your code and the AI tutor open when you unlock this question.