Tell us what’s happening:
Hi Guys…
I’m not sure why, but this one is really killing me…
The concept of recursion i find a bit crazy but I’m ok with…
For me, it’s just getting the set up for the question -
“ However, notice that multiply(arr, n) == multiply(arr, n - 1) * arr[n - 1]
.”
Am I being super dense to not get this??
Sorry/thanks
Your code so far
function sum(arr, n) {
// Only change code below this line
// Only change code above this line
}
Your browser information:
User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1
.
Challenge: Replace Loops using Recursion
Link to the challenge: