Skip to content

JoeStainke/2i

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

2i

A function which takes 2 parameters: an array of whole numbers and an integer X.

The function looks for pairs of numbers in the array which sum to X. Each array element can only be used in one pair. The function returns the count of how many such pairs it finds.

I have assumed that the array passed to the function has already been sorted in ascending order.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages