Deviopath › JavaScript

Sum Nested Arrays

Medium · Recursion

Write a function deepSum that returns the sum of all numbers in an array that can contain other arrays, nested to any depth.

Next: Two Sum