Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot have the same index in the array.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers25
Suggested Problems
-
Remove any row in which a NaN appears
8775 Solvers
-
403 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13790 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
718 Solvers
-
837 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!