Two Sum Existence

Problem: Two Sum Existence

Given an integer array nums and an integer target, determine whether there exist two elements with different indices whose sum equals target.

Print true if ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: