Two Sum
00:00

Description

Implement `hasTwoSum(nums, target)` that returns true if any two numbers in the array sum up to the target.

Example Test Case

Example 1

hasTwoSum
Input
[2,7,11,15], 9
Expected Output
true
Loading...
Test Results
Run your code to see the results