Skip to content

Latest commit

 

History

History

02-SumArray

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Sum Array

Introduction

In this case we are presented with two elements: an ordered array of integers and an integer. The objective of the exercise is to find if the combination of any two numbers in the array add up to the given number.

Examples

There are two values

array: [2,4,5,9]
number: 9
return: true

There are not two values

array: [2,4,5,9]
number: 12
return: false