Apology to ask but what I don’t understand that the answer should have two function that calculate the sum of first i numbers of the array and sum of last N - i + 1 numbers of the array. However, the answer I have seen in this forum doesn’t have any function and neither performing this iteration.
Any clue, what I am missing or am I off-track?
Thanks in advance…
P.S.
link: CHEFSUM -Editorial. Just look at the quick explanation and this is my answer that I submitted.