cswork / mock oaOpen Mock OA

Amazon · HackerRank

Amazon OA mock: 2 questions in 90 minutes

Take a timed Amazon OA mock on CSWork: 2 coding questions in 90 minutes, judged online HackerRank-style, auto-submitted at time-up and scored.

Start the Amazon mock →385 judgeable problems in the pool (OA bank + frequent LeetCode)

The real Amazon OA format

Platform
HackerRank
Questions
2
Time limit
90 minutes
Difficulty order
medium → medium
Scoring
Each question 0–100 by tests passed
Roles
SDE intern, New grad (SDE I)
Besides coding
Work Style Assessment (Leadership Principles SJT, ~15–20 min) + Work Simulation (simulated inbox decisions, ~50 min)

Applies to SDE interns and new grads (SDE I); some regions report 70 min for coding. Problems are Amazon-written HackerRank scenarios; code must compile and copy-paste is monitored.

What the Amazon OA tests

Greedy with sorting, hash-map counting, prefix sums, sliding windows and binary search on the answer. The hard part is spotting the pattern inside a long story and keeping it fast enough for the hidden tests.

From topic labels on 400 Amazon OA problems on this site (AI-assisted estimates)
  1. Greedy22%
  2. Hashing16%
  3. Prefix & Ranges10%
  4. Strings8%
  5. Two Pointers8%
  6. In-place Arrays7%
  7. Stacks & Heaps6%
  8. Binary Search6%

Pick a topic to practise its stop on Line 500.

Estimated difficulty mix

  • easy 19%
  • medium 63%
  • hard 18%
Style
Every problem is wrapped in a long Amazon story about warehouses, servers, packages or shipping capacity, with a LeetCode-medium pattern underneath. Brute force usually times out on the large hidden tests.
How to prepare
Check the constraints first and aim for O(n log n). Drill sort+greedy, sliding window, prefix sums and binary search on the answer until you can name the pattern right after reading the story. In the Work Style section, answer consistently with the Leadership Principles.

What this mock simulates

  • 2 coding questions, in the order medium → medium
  • A 90-minute countdown that keeps running if you leave, and submits itself at zero
  • Problems drawn from Amazon's OA bank and its frequent LeetCode questions, preferring ones you have not solved
  • Solutions and hints stay hidden until you finish; then a score report and the solutions

Not simulated

  • Work Style Assessment (Leadership Principles SJT, ~15–20 min) + Work Simulation (simulated inbox decisions, ~50 min)
  • Camera, microphone or screen proctoring, and plagiarism checks
  • HackerRank's own editor; you use the CSWork editor and judge

Where the format comes from