Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 282 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 282 Bytes

Two-Sum

This problem was asked by Facebook.

Description

You are given a list of numbers, and a target number k.

Return whether or not there are two numbers in the list that add up to k.

Example

Given [4, 7, 1 , -3, 2] and k = 5, return "true" since 4 + 1 = 5.