Amazon Hub
Eligibility, process, salary, and full prep map.
Amazon online assessment (OA) is the first hard filter for most fresher, campus, and off-campus SDE-style drives. This page covers the Amazon OA format, what happens after you clear it, sample Amazon OA questions with approaches, an 8-week prep plan, and mistakes that sink otherwise-strong candidates.
Patterns below are candidate-reported for 2025-2026. Platforms and section names can change by drive. Always confirm the invite mailer for your window.
| Stage | What candidates report | What you must show |
|---|---|---|
| 1. Online assessment | Often 70-120 min: 2 coding problems + work simulation / debugging + LP-style behavioral MCQs | Correctness + reasonable complexity under time |
| 2. Technical interviews | Multiple DSA rounds; every round mixes coding with Leadership Principles | Explain approach, edge cases, complexity |
| 3. Later rounds | Bar Raiser is mandatory on many loops; system design depth scales with level | Depth beyond the OA pattern |
| 4. HR / offer | Role, location, CTC discussion | Consistency with resume |
| Component | Candidate-reported details |
|---|---|
| Platform | HackerRank or Amazon OA platform |
| Duration | About 70-120 minutes depending on invite |
| Question mix | 2 coding (DSA) + work simulation / scenario tasks + behavioral MCQs |
| Languages | Java, C++, Python, C# (pick one you can debug fast) |
| Scoring | Automated tests on coding; simulation and MCQs scored separately; partial credit varies |
| Advance rate | Roughly 15-25% of applicants clear OA in many campus-style reports |
Track the minimum price so far and the best price - minSoFar. O(n) time, O(1) space. Edge cases: empty array, strictly decreasing prices (profit 0).
This is the classic Best Time to Buy and Sell Stock pattern frequently reported in Amazon-style screens.
Count with a hash map, then a heap of size k (or bucket sort by frequency). Average O(n log k) with a heap.
Watch ties: clarify whether any valid top-k is accepted.
DFS/BFS flood fill. Mark visited in-place if allowed. O(rows * cols).
Amazon reports often include grid/graph connectivity variants.
Sort by start. If the next interval starts at or before the current end, extend the end; else push current and move on.
O(n log n) from sorting.
Typical bug: forgetting to evict timestamps outside the window before counting. Fix with a queue of timestamps and pop while the front is older than the window.
Amazon-style answers favor Customer Obsession and Dive Deep: surface the risk, propose a measured mitigation, and avoid silent ship. Practice STAR stories for Bias for Action vs Insistence on Highest Standards trade-offs.
| Weeks | Focus | Exit criteria |
|---|---|---|
| 1-2 | Arrays, hashing, two pointers, sliding window | 40+ easy/medium solved cleanly |
| 3-4 | Trees, graphs (BFS/DFS), heaps | Can code BFS/DFS without notes |
| 5-6 | DP + greedy patterns (plus Amazon LP story outlines in parallel) | 25+ medium DP/greedy with recursion to bottom-up |
| 7 | Timed full mocks matching About 70-120 minutes depending on invite | Finish both coding problems with solid tests with passing tests |
| 8 | Weak-topic repair + complexity review | Re-solve every miss within 48 hours |
Amazon Hub
Eligibility, process, salary, and full prep map.
Coding Questions
Extra DSA practice with solutions.
Online Assessments Hub
Compare OA difficulty across companies.
Interview Experience
What happens after you clear the OA.