Asteroid Collision at DoorDash
Medium47.1% acceptance
This problem has 62.5% frequency at DoorDash.
Problem Description
We are given an array `asteroids` of integers representing asteroids in a row. The indices of the asteroid in the array represent their relative position in space. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative mean...
Read full problem and hintsTopics
Also asked at 34 companies
More DoorDash Questions
Longest Increasing Path in a MatrixHardSearch Suggestions SystemMediumMaximum Profit in Job SchedulingHardMost Profit Assigning WorkMediumKoko Eating BananasMedium
View all DoorDash questions