AlgoMaster Logo

Asteroid Collision

asteroids=[5, 10, -5]
0 / 6
algomaster.io
Step:Brute force: resolve the first collision, then rescan from the start