Sum of 2 numbers in array - MATLAB Cody - MATLAB Central

Problem 55155. Sum of 2 numbers in array

Difficulty:Rate
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

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Feb 09, 2025

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers23

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!