+ 8
Challenge: Two Sum
An ARRAY of numbers is given and a SUM Variable. Find one pair out of the array that will sum up to the target. Example: [1,2,4,6,8] 9 Answer: 1 8
7 Respostas
+ 6
Oneliner. All the ways to sum including ones involving repetitions https://code.sololearn.com/cWLGyFH7weto/?ref=app
+ 5
https://code.sololearn.com/#py
+ 4
Nice challenge.
My try :
https://code.sololearn.com/ciO2CxKfNUL2/?ref=app
+ 3
python answer to the challenge.
https://code.sololearn.com/cnMuSrmuM0x5/?ref=app
+ 2
New version. Allows to find solutions with or without repetitions
https://code.sololearn.com/cWLGyFH7weto/?ref=app
+ 1
Response in Ruby; function finds all summing pairs for any input array and sum, returns pairs while excluding repeats.
https://code.sololearn.com/cP8EJm3Sw7f4/?ref=app