Asteroid Collision at Oracle
Medium47.1% acceptance
This problem has 75.0% frequency at Oracle.
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 Oracle Questions
Two SumEasyNumber of IslandsMediumGroup AnagramsMediumMerge IntervalsMediumSliding Window MaximumHard
View all Oracle questions