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.

Loading…