Skip to content

kbaldauf/PairWithGivenSum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PairWithGivenSum

This gem takes an integer array and an integer and returns a pair from the array whose sum is equal to the integer.

Getting Started

Install the gem.

gem install pair_with_given_sum

Usage

Give it an integer array and an integer via the command line.

pair_with_given_sum "[2, 4, 8, 11, 16, 18, 20, 0, 1 , 3, 34]" 15

About

Ruby gem for finding a pair with a given sum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages