nums
and an integer target
, return indices of the two numbers such that they add up to target
.You may assume that each input would have exactly one solution, and you may not use thesame element twice.
You can return the answer in any order.
nums
seperated by spacetarget
Constraints:
2 ≤ nums.length ≤ 10
-10 ≤ nums[i] ≤ 10
-10 ≤ target ≤ 10
User Accepted
User Tried
Total Accepted
Total Submissions
Difficulty