YourAlly

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

  1. Critical Links Between Availability Zones Locked
  2. Fewest Shuttle Transfers Locked
  3. Rolling Median Request Latency Locked
  4. Shortest Aisle Span Covering an Order Locked
  5. Merge Two Sorted Lists Locked

Sign up free to practice all 6

Related pages

More Amazon Principal rounds

Amazon coding at other levels

Other companies at this level

Company guide

Amazon interview guide in Academy