Sum of Array Recursion Problem

Sum of Array Recursion Problem — ExecCode School DSA Practice

Solve the Sum of Array Recursion problem on ExecCode. Free online school DSA practice in Recursion Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a list of whole numbers. Your task is to solve Sum of Array Recursion. Add all of them using recursion and print the total.

Examples

Input 4 1 2 3 4; Output 10. Input 3 5 5 5; Output 15

Constraints

1 <= N <= 1000

Practice Sum of Array Recursion free on ExecCode. Browse DSA problems, topic map, and placement guides.