Determine Whether Two Integers Sum to a Target

Quick Overview

Determine whether two integers at distinct indices sum to a target, including the case where equal values occur twice. Validate all inputs, avoid mutation, and scan once with a set of previously seen complements for expected O(n) time.

Determine Whether Two Integers Sum to a Target

Company: Hudson River Trading

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: Determine whether two integers at distinct indices sum to a target, including the case where equal values occur twice. Validate all inputs, avoid mutation, and scan once with a set of previously seen complements for expected O(n) time.

Hudson River Trading logo
Hudson River Trading
May 15, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
10
0
Loading...