Problem 750. Accumulate Cells

Given a combining function, a cell array, and an initial value, accumulate the result.

For example,


should return 10, while


should return 24.

The elements of C should be such that the combining function can apply to them without generating an error (all the same size, for example).

Solution Stats

60.27% Correct | 39.73% Incorrect
Last Solution submitted on May 21, 2018

Problem Comments