diff --git a/firstToyProblem.js b/firstToyProblem.js index b0873e7..b1646cf 100644 --- a/firstToyProblem.js +++ b/firstToyProblem.js @@ -1,9 +1,18 @@ -/** - * [1,10,5,-3,100] - * create a function that finds the minimum - * without using any pre build in function - */ - -function minimum(array) { - return; -} +/** + * [1,10,5,-3,100] + * create a function that finds the minimum + * without using any pre build in function + */ + +function minimum(array) { + var min= array[0]; + for (let i=1; i452 + * + * sumPair([2,4,9,73])=>6 + */ +function sumPair(array) { + //your code goes here + if (Array.isArray(list)) + { + var sum=0; + for (let i=0; i "a & c have pair values" + * + */