2023-05-03 20:09:07 +02:00

1.5 KiB

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