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 two array elements whose values equal a target sum using a hash map in linear time.
HashedIn by Deloitte
ABC FamilyFind every index pair summing to a target using a hash map while correctly handling duplicate values.
Affinity solutions
Pubmatic
FiverrFind two payment entries summing to a target using a hash map in O(n) time.
Citi
SecuronixFind two indices whose values sum to a target using a one-pass hash map.
Iris software
John DeereFind two telemetry values that reach a target using a one-pass hash map while preserving original indices.
Staples
CiscoSolve Two Sum with a hash map, anagram comparison with counts, and palindrome detection in linear time.
TripadvisorFind two array values that sum to a target using a hash map in linear time.
Amazon Web Services
Kotak Mahindra BankUse two pointers to determine whether two distinct values in a sorted array equal the target.
Sign up to see every question
Create a free account to unlock this list and practice real interview questions.