Write a function that computes the sum of all elements of the input array v without using the built-in sum function.
The input v may be a vector or a matrix of any size.
If the input is empty, the function must return 0.

Solution Stats

90 Solutions

44 Solvers

Last Solution submitted on Aug 02, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...