Problem 54825. Find two numbers that add up to the target value

Given a vector A and target n, return the indices of two numbers that add up to n. If there are multiple solutions, return the first one.

Solution Stats

30.0% Correct | 70.0% Incorrect
Last Solution submitted on Dec 05, 2022

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers12

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

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

Start Hunting!