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.