← Sprinklr questions

Count balls falling into bucket after collisions

Filed under Sprinklr

The question

Given n balls rolling along a table toward a bucket at one end with specified initial positions and velocities, colliding balls merge and adopt the velocity of the ball closer to the bucket. Find the total number of distinct balls that eventually drop into the bucket.

No write-up yet. Related questions below have one.

Related Sprinklr questions

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