Engineer Ii Interview Questions

9,744 engineer ii interview questions shared by candidates

Create a simple game board represented by a line with numbers from 0 to 100. Two players take turns rolling a dice and moving their game piece along the board. If they land on a "snake," they move backward; if they land on a "ladder," they move forward. The number rolled on the dice determines how many spaces they move. If they land on neither a snake nor a ladder, they stay in their current position. The first player to reach or exceed space 100 wins. However, if a player's move would take them beyond space 100, they must backtrack instead of moving forward.
avatar

Software Engineer II

Interviewed at Amazon

3.5
Feb 27, 2024

Create a simple game board represented by a line with numbers from 0 to 100. Two players take turns rolling a dice and moving their game piece along the board. If they land on a "snake," they move backward; if they land on a "ladder," they move forward. The number rolled on the dice determines how many spaces they move. If they land on neither a snake nor a ladder, they stay in their current position. The first player to reach or exceed space 100 wins. However, if a player's move would take them beyond space 100, they must backtrack instead of moving forward.

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 9331 - 9340 interview questions

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