Top 50 two sum Interview Questions
The most frequently asked two sum questions across all roles and companies, ranked by real interview frequency. Updated daily.
Find every index pair summing to a target using a hash map while correctly handling duplicate values.
Affinity solutions
Pubmatic
FiverrFind two array elements whose values equal a target sum using a hash map in linear time.
HashedIn by Deloitte
ABC FamilyFind two indices whose values sum to a target using a one-pass hash map.
Iris software
John DeereFind two payment entries summing to a target using a hash map in O(n) time.
Citi
SecuronixSign up to see every question
Create a free account to unlock this list and practice real interview questions.
Find two telemetry values that reach a target using a one-pass hash map while preserving original indices.
Cisco
StaplesFind two analytics values that equal a target sum using a hash map in O(n) time.
Itlize Global
RaytheonFind two array values that sum to a target using a hash map in linear time.
Amazon Web ServicesUse two pointers to determine whether two distinct values in a sorted array equal the target.