Technical Intern Interview Questions

1,086 technical intern 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 81 - 90 interview questions

Glassdoor has 1,086 interview questions and reports from Technical intern interviews. Prepare for your interview. Get hired. Love your job.