Engineer Ii Interview Questions

9,767 engineer ii interview questions shared by candidates

Given an array of lockers (0 = empty, 1 = occupied), find the maximum distance to the nearest 1. Modify the problem to place k packages instead of one, maximizing the minimum distance. Follow-up: Optimize for O(1) space complexity and reduce O(n log n) sorting overhead.
avatar

Software Development Engineer (SDE) II

Interviewed at Amazon

3.5
Mar 10, 2025

Given an array of lockers (0 = empty, 1 = occupied), find the maximum distance to the nearest 1. Modify the problem to place k packages instead of one, maximizing the minimum distance. Follow-up: Optimize for O(1) space complexity and reduce O(n log n) sorting overhead.

Viewing 9321 - 9330 interview questions

Glassdoor has 9,767 interview questions and reports from Engineer ii interviews. Prepare for your interview. Get hired. Love your job.