Skip to content
JoeStainkePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages