Cody

Problem 2350. What is Sum Of all elements of Matrix

Created by Vishal in Community

Given the matrix x, return the sum of all elements of matrix.

Example:

 Input  x = [ 1 2 0 0 0
              0 6 9 3 3 ]
 Output y is 24.
 Input  x = [ 1 NaN 0 0 0
              0 6 9 3 3 ]
 Output y is NaN.

Solution Stats

80.78% Correct | 19.22% Incorrect
Last solution submitted on Jun 17, 2019

Problem Comments