Member Technical Staff Interview Questions

4,283 member technical staff interview questions shared by candidates

There is a long wire along a straight line, which contains N bird nests at positions x1, x2, ... xn. There are B birds (B <= N), which become angry towards each other once put into a nest. To prevent the birds from hurting each other, you want to assign birds to nests such that the minimum distance between any 2 birds is as large as possible. What is the largest minimum distance? Input: N = 5, B = 3 Nests = [1,2,4,8,9] Output: 3
avatar

Member of Technical Staff - Intern

Interviewed at Nutanix

3.8
Apr 29, 2023

There is a long wire along a straight line, which contains N bird nests at positions x1, x2, ... xn. There are B birds (B <= N), which become angry towards each other once put into a nest. To prevent the birds from hurting each other, you want to assign birds to nests such that the minimum distance between any 2 birds is as large as possible. What is the largest minimum distance? Input: N = 5, B = 3 Nests = [1,2,4,8,9] Output: 3

Viewing 671 - 680 interview questions

Glassdoor has 4,283 interview questions and reports from Member technical staff interviews. Prepare for your interview. Get hired. Love your job.