easy Arrays 10 points

Two Sum Problem

Given an array of integers and a target sum, return the indices of the two numbers such that they add up to the target.

Problem Description

Given an array of integers and a target sum, return the indices of the two numbers such that they add up to the target.

Examples

Example

Input: [2,7,11,15], 9

Output: [0,1]

Challenge Info

10 Points

Reward

easy

Difficulty

No limit

Time Limit

Submission Stats

Total Submissions 0
Accepted 53
Success Rate 0%