Two Sum Existence

Asked at Hudson River Trading · Coding Questions · Difficulty: Easy

Given an integer array `nums` and an integer `target`, determine whether there exist two elements with **different indices** whose sum equals `target`. Return `true` if such a pair exists; otherwise return `false`.

Loading the problem…