Amazon L6 coding interview questions
These are the 10 coding questions YourAlly has tagged for Amazon at L6. Amazon L6 is Senior SDE (SDE III). YourAlly treats it as Senior, the same level as Google L5 and Meta E5. Amazon L6 is not the same level as Google L6 or Meta E6, which are 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 the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.
Practice a mock Amazon L6 coding loopPractice Amazon coding questions
Build Order for Catalog PipelinesFree to read
Catalog ingestion jobs are numbered 0 to n-1. Each dependency [a, b] means job a must finish before job b starts. Return a valid run order that always picks the smallest ready job id, or an empty list if the dependencies contain a cycle.
Input: n = 4, dependencies = [[0,1],[0,2],[1,3],[2,3]] Output: [0,1,2,3]
What a strong answer covers
- Kahn's algorithm with a min-heap for the tie-break
- Cycle detection by comparing output length to n
- Handles duplicate edges and self loops
- O((n + e) log n) time
9 more coding questions
- Critical Links Between Availability Zones Locked
- Distance to Nearest Charging Dock Locked
- Fewest Shuttle Transfers Locked
- Maximize Delivery Slot Revenue Locked
- Minimum Conveyor Capacity for Deadline Locked
- Minimum Trucks for Package Pairs Locked
- Rolling Median Request Latency Locked
- Shortest Aisle Span Covering an Order Locked
- Merge Two Sorted Lists Locked
Related pages
More Amazon L6 rounds
- System design 7 questions
- Behavioral 26 questions
- Project retrospective 10 questions
Amazon coding at other levels
Other companies at this level
- Adobe Senior 7 questions
- Airbnb Senior 4 questions
- Anthropic Senior 6 questions
- Apple Senior 7 questions
- Cisco Senior 6 questions
- Google L5 14 questions