Skip to content
RED SAGSkills
medium10 pts · first answer countsstacks-and-queues

Asteroid collision simulation

Asteroids move in a row: positive moves right, negative moves left, size is the absolute value. When two meet, the smaller one explodes (both if equal). What remains of [5, 10, -5]?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions