← Goldman Sachs questions

Asteroid / Ball Collisions with Strength Reduction

Filed under Goldman Sachs

Given an array of integers representing balls moving along a line (positive for right, negative for left, magnitude for strength/speed), simulate collisions. When two balls collide, the one with…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.