Count Cross-Array Pairs with a Target Sum
Company: Visa
Role: Software Engineer I
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Online Assessment
Overview: Count cross-array index pairs whose values add to a target, with duplicates contributing their full multiplicity. Use complementary frequency counts or an equivalent linear-time approach that handles empty arrays, negatives, and results larger than either input.
Read the full Visa Software Engineer I interview experience this question came from