Amazon Coding Interview Questions
23 Amazon coding interview problems with full optimal solutions — 2 easy, 18 medium, 3 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Amazon interviewer values, and a FAQ section.
Showing 2 problems of 23
- #1easyfoundational
1. Two Sum
Given an array of integers and a target, return the indices of the two numbers that add up to the target. Amazon asks this to test whether you can articulate the space-for-time tradeoff before reaching for the optimal hash-map solution.
- #20easyfoundational
20. Valid Parentheses
Given a string of brackets, return true if every opener has a matching, correctly-nested closer. Amazon asks this as a warm-up to test whether you reach for a stack and articulate the LIFO invariant.
Related interview-prep guides
HireVue Tech Interview Guide: The 2026 Playbook for Async Video Rounds
HireVue is the category-leading async video interview platform. Candidates record answers solo, on the clock, and a combined AI-plus-human review layer scores the recording days later. For 2026 tech jobseekers, the format is different enough from live interviews to need its own playbook. This guide is that playbook.
HackerRank Tech Interview Guide 2026: What It Tests, What It Records, and How to Practice
HackerRank is a browser-based coding-assessment platform that tests algorithms, SQL, and role-specific skills, and records every keystroke, paste, and tab-focus change inside its own tab. As of the 2026 hiring cycle it is still the volume leader in first-round technical screens. The way through it is recognizing the problem shapes it keeps asking, under a timer, and taking the test yourself.
CodeSignal GCA for Tech Interviews in 2026: The Complete Guide
The CodeSignal General Coding Assessment is a 70-minute, four-task timed test scored on a 600 to 850 scale, used as a filter by Goldman Sachs, Capital One, Robinhood, Brex, and a growing list of tech and finance employers. This guide breaks down what it tests, how it scores, what it records during your session, and how to practice for it.