Search
⌘K

Leetcode 735. Asteroid Collision

Given signed integers for asteroid sizes and directions, determine which asteroids remain after sequential collisions where only opposite-moving neighbors (positive then negative) meet and the smaller (or both if equal) explode; this is typically solved by simulating collisions with a stack.

Asked at:

Meta

Amazon

Amazon


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late July, 2025

Amazon

Amazon

Mid-level

Late November, 2024

Meta

Junior

Solve a variation of the Asteroid Collision problem

Early October, 2024

Amazon

Amazon

Intern

Asteroid Collision - Implement a solution to determine the state of asteroids after collisions

Comments

Your account is free and you can post anonymously if you choose.