All Problems
1/10
Two Sum
EasyGiven a list of numbers and a target, find the two numbers that add up to the target. Print them as a list [a, b] where a appears before b in the original list.
Given variables
target: the target sum nums: a list of integers
3 test cases
Hit Test to see output...Loading WASM...Docs