Problem 735 · Medium

Asteroid Collision

Find which asteroids survive after neighbouring pairs moving in opposite directions collide. The visual pushes asteroids onto a stack and pops smaller ones on impact.

Open the interactive visualisation