Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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:
Amazon
S
Servicenow
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early October, 2025
Meta
Mid-level
Early March, 2025
S
Servicenow
Staff
Mid January, 2025
Amazon
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.