Sponsored
Use these hints if you're stuck. Try solving on your own first.
Say a row of asteroids is stable. What happens when a new asteroid is added on the right?
Solve with full IDE support and test cases