Two Sum

Easy
LeetCode #1

Given 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

You are not logged in.