← Adobe questions
CodingReported in a candidate post, Dec 2021

Two Sum with optimal time and space

Filed under Adobe

Given an array of integers and a target, return the indices of the two numbers that add up to the target. Exactly one solution exists and the same element cannot be used twice. The interviewer wanted…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Adobe questions

Collected from public candidate posts and coding forums. Updated Nov 2026.