Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1.47 KB

File metadata and controls

12 lines (8 loc) · 1.47 KB

Two Sum hard #array #math

by PsiloLau @Psilocine

Take the Challenge    简体中文

Given an array of integers nums and an integer target, return true if two numbers such that they add up to target.

For example

type sum1 = TwoSum<[3, 2, 4], 6> // true
type sum2 = TwoSum<[2, 7, 11, 15], 15> // false

Back Share your Solutions Check out Solutions