Embedded Engineer • Intern
Embedded Engineer • Intern
High QualityPrep Other Coding Questions Asked by Amazon
Continue with targeted prep from Amazon's coding question bank.
Interview Summary
I submitted my application on Wednesday and received the OA invitation the following day. The assessment consisted of three sections: a 100-minute coding challenge, a 45-minute work simulation, and a 6-minute work style assessment.
The coding section included a sliding window problem and a newer AI-assisted repository coding task. The work simulation was surprisingly exhausting, especially after spending 100 minutes on the coding challenge.
Interview Details
Part 1 — Coding Challenge (Two coding questions)
Question 1 — Longest Server Uptime After Fixed-Length Maintenance
I was given a binary string log representing the operational status of a server over time. Each character had the following meaning:
1: The server was operating normally.0: The server experienced a failure.
I was allowed to perform at most one maintenance operation. During maintenance, I could select a contiguous substring of exactly k characters and change every 0 within that substring to 1. Characters outside the selected substring would remain unchanged. The goal was to return the length of the longest contiguous sequence of 1s after performing the maintenance operation.
-
Important Constraint — The Maintenance Window Must Have Exactly K Characters
The key distinction was that the maintenance operation had to affect a contiguous segment of exactly
kpositions. This was different from the classic longest substring problem where I could flip any collection of at mostkzeros. In this problem, all modified positions had to fall within one fixed-length maintenance window.I considered using a sliding window approach combined with information about consecutive
1s immediately to the left and right of the selected
Unlock Full Details
Create a free account to unlock this interview experience report.