Amazon·Software Engineer·Technical Phone Screen
Apr 2026
Amazon SWE coding round, pretty much just one meaty question that kept expanding. Started with 2Sum, then they pushed it to 3Sum, and they wanted the full treatment: walkthrough, code, dry run, edge cases, and complexity analysis.
- Given an integer array and a target value, return all unique pairs that sum to the target. Pairs should be sorted and contain no duplicates. Walk through your approach, write a complete Python solution, dry run a test case, list unit test cases, identify an edge case your solution can't handle, and analyze time and space complexity.
- Follow-up: extend your solution to find all unique triplets instead of pairs. How does the approach change, and what are the new time and space complexities?
“The 2Sum part felt fine.” The rest of the author's notes on Software Engineer interview at Amazon, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post