Leetcode 1. Two Sum
Given an array of integers and a target, return the indices of two distinct elements whose values sum to the target (exactly one valid solution exists). The core challenge is efficiently finding complementary values (aiming for better than O(n^2) brute force).
Asked at:Brex
Upstart
ServiceNow
B
JPMorgan Chase
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Mid June, 2026
JPMorgan Chase
Intern
Late April, 2026
Senior
Mid February, 2026
B
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.