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, How It Tracks You, and the Modern Setup
HackerRank is still the volume leader in first-round technical screens for 2026 tech hiring. A browser-sandboxed coding environment that logs every keystroke, paste event, and tab-focus change inside its own tab. This guide covers what it tests, the boundary of what it can and cannot detect, and how a modern desktop setup pairs with a HackerRank session without leaking into the screen-share.
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 tracks during your session, and how a modern desktop setup pairs with it without showing up in proctored recordings.