Problem

Return the sum of an int array using recursion.

Examples

  • arraySumRecursive([1, 2, 3]) -> 6
  • arraySumRecursive([]) -> 0
Compile and test (Ctrl+Enter)