โ† LinkedIn questions

Find friend with the ball after k seconds

Filed under LinkedIn

The question

Given n friends in a random order passing a ball according to a receiver array each second starting from friend 1, determine which friend has the ball after k seconds.

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

Related LinkedIn questions

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