We are given an array asteroids of integers representing asteroids in a row.
For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed.
Find out the state of the asteroids after all collisions.
Example 1:
Input: asteroids = [5,10,-5] Output: [5,10] Explanation: The 10 and -5 collide, resulting in 10. The 5 and 10 never collide.
The following metrics were computed from 7 interview experiences for the Amazon Software Engineer role in Bellevue, Washington.
Amazon's interview process for their Software Engineer roles in Bellevue, Washington is very selective, failing most engineers who go through it.
Candidates reported having very good feelings for Amazon's Software Engineer interview process in Bellevue, Washington.