MISSING VALUE Interview Questions

6,572,321 interview questions shared by candidates

Given n+1 buckets with n of them with ball inside and move(a,b) function, that moves ball from bucket a to bucket b. Each ball has a different number from [1,n] on it. Move balls, so each bucket has a ball with matching number in it.
avatar

Software Engineer Intern

Interviewed at Meta

3.6
Feb 17, 2012

Given n+1 buckets with n of them with ball inside and move(a,b) function, that moves ball from bucket a to bucket b. Each ball has a different number from [1,n] on it. Move balls, so each bucket has a ball with matching number in it.

Viewing 3811 - 3820 interview questions

Glassdoor has 6,572,321 interview questions. Prepare for your interview. Get hired. Love your job.