Amazon Principal coding interview questions
These are the 6 coding questions YourAlly has tagged for Amazon at Principal. Principal is the common India title for this level. Amazon calls it L7, Principal SDE. YourAlly treats it as Staff (E6), the same level as Google L6 and Meta E6. Amazon L7 is not the same level as Google L7 or Meta E7, which are Senior staff.
A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level interviewers also expect clean code quickly and edge cases you raise before they do.
Practice a mock Amazon Principal coding loopPractice Amazon coding questions
Maximize Delivery Slot RevenueFree to read
A single delivery crew can take booked jobs [start, end, revenue] that occupy the half-open interval [start, end). Jobs the crew takes cannot overlap. Return the maximum total revenue.
Input: jobs = [[1,3,50],[2,4,10],[3,5,40],[3,6,70]] Output: 120
What a strong answer covers
- Sort by end time and DP over prefixes
- Binary search for the last compatible job
- Correct half-open boundary with bisect_right
- O(n log n) time
- Explains why greedy fails
5 more coding questions
- Critical Links Between Availability Zones Locked
- Fewest Shuttle Transfers Locked
- Rolling Median Request Latency Locked
- Shortest Aisle Span Covering an Order Locked
- Merge Two Sorted Lists Locked
Related pages
More Amazon Principal rounds
- System design 8 questions
- Behavioral 38 questions
- Project retrospective 10 questions
Amazon coding at other levels
- SDE-3 10 questions
- Senior Principal 6 questions
Other companies at this level
- Adobe Principal 4 questions
- Apple Principal 7 questions
- Cisco Principal 3 questions
- Google Principal 14 questions
- IBM Principal 3 questions
- Intel Principal 3 questions